{"action":"created","issue":{"url":"https://api.github.com/repos/rrdelaney/jadelint/issues/14","labels_url":"https://api.github.com/repos/rrdelaney/jadelint/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/rrdelaney/jadelint/issues/14/comments","events_url":"https://api.github.com/repos/rrdelaney/jadelint/issues/14/events","html_url":"https://github.com/rrdelaney/jadelint/issues/14","id":104456513,"number":14,"title":"linter should walk from file path up to find .jadelintrc","user":{"login":"zyklus","id":320562,"avatar_url":"https://avatars.githubusercontent.com/u/320562?v=3","gravatar_id":"","url":"https://api.github.com/users/zyklus","html_url":"https://github.com/zyklus","followers_url":"https://api.github.com/users/zyklus/followers","following_url":"https://api.github.com/users/zyklus/following{/other_user}","gists_url":"https://api.github.com/users/zyklus/gists{/gist_id}","starred_url":"https://api.github.com/users/zyklus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyklus/subscriptions","organizations_url":"https://api.github.com/users/zyklus/orgs","repos_url":"https://api.github.com/users/zyklus/repos","events_url":"https://api.github.com/users/zyklus/events{/privacy}","received_events_url":"https://api.github.com/users/zyklus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-02T11:08:57Z","updated_at":"2015-09-02T17:09:28Z","closed_at":null,"body":"per d9d/atom-linter-jade#3, the linter only looks in the current directory for the `.jadelintrc` file.  It should start from the file directory (not cwd) and walk up.\r\n\r\nThis is also an issue from the command line if calling the linter on a file in a different directory, e.g.:\r\n\r\n```sh\r\njadelint src/file.jade\r\n```\r\n\r\nAlternatively, can you fork the config file loading code so that I can easily do something like `.setConfig(json|fileName)` and not have to duplicate this block of code:\r\n\r\n```js\r\ntry {\r\n  conf = JSON.parse(fs.readFileSync('.jadelintrc'));\r\n  try {\r\n    for (rule in conf) {\r\n      level = conf[rule];\r\n      rules.rules[rule].prototype.level = level;\r\n    }\r\n  } catch (_error) {}\r\n} catch (_error) {}\r\n```"},"comment":{"url":"https://api.github.com/repos/rrdelaney/jadelint/issues/comments/137174086","html_url":"https://github.com/rrdelaney/jadelint/issues/14#issuecomment-137174086","issue_url":"https://api.github.com/repos/rrdelaney/jadelint/issues/14","id":137174086,"user":{"login":"rrdelaney","id":6325382,"avatar_url":"https://avatars.githubusercontent.com/u/6325382?v=3","gravatar_id":"","url":"https://api.github.com/users/rrdelaney","html_url":"https://github.com/rrdelaney","followers_url":"https://api.github.com/users/rrdelaney/followers","following_url":"https://api.github.com/users/rrdelaney/following{/other_user}","gists_url":"https://api.github.com/users/rrdelaney/gists{/gist_id}","starred_url":"https://api.github.com/users/rrdelaney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrdelaney/subscriptions","organizations_url":"https://api.github.com/users/rrdelaney/orgs","repos_url":"https://api.github.com/users/rrdelaney/repos","events_url":"https://api.github.com/users/rrdelaney/events{/privacy}","received_events_url":"https://api.github.com/users/rrdelaney/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T17:09:28Z","updated_at":"2015-09-02T17:09:28Z","body":"jadelint will have support for config objects in version 0.3"}}