{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2662","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2662/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2662/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2662/events","html_url":"https://github.com/eslint/eslint/issues/2662","id":83700733,"number":2662,"title":"eslintrc getting skipped when $HOME is $PWD","user":{"login":"zertosh","id":830952,"avatar_url":"https://avatars.githubusercontent.com/u/830952?v=3","gravatar_id":"","url":"https://api.github.com/users/zertosh","html_url":"https://github.com/zertosh","followers_url":"https://api.github.com/users/zertosh/followers","following_url":"https://api.github.com/users/zertosh/following{/other_user}","gists_url":"https://api.github.com/users/zertosh/gists{/gist_id}","starred_url":"https://api.github.com/users/zertosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zertosh/subscriptions","organizations_url":"https://api.github.com/users/zertosh/orgs","repos_url":"https://api.github.com/users/zertosh/repos","events_url":"https://api.github.com/users/zertosh/events{/privacy}","received_events_url":"https://api.github.com/users/zertosh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-01T21:25:53Z","updated_at":"2015-06-02T19:30:58Z","closed_at":null,"body":"I'm having issues with our CI building our apps in the `$HOME` dir. If I have:\r\n\r\n```\r\nyour-project\r\n├── .eslintrc\r\n├── lib\r\n│ └── source.js\r\n└─┬ tests\r\n  ├── .eslintrc\r\n  └── test.js\r\n```\r\n\r\nAnd `your-project` also happens to be `$HOME`. When linting `tests/test.js`, eslint will [skip](https://github.com/eslint/eslint/blob/665f87d01943e45f3aa9639ea3e921f7cd402b00/lib/config.js#L203-L206) `your-project/.eslintrc` (since it found `your-project/tests/.eslintrc`).\r\n\r\nIt makes sense to skip `$HOME/.eslintrc` if another `.eslintrc` was found. However, I wonder if it also makes sense to add an exception so as not to skip it if `$HOME` `===` `$PWD`."},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/108067657","html_url":"https://github.com/eslint/eslint/issues/2662#issuecomment-108067657","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2662","id":108067657,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T19:30:58Z","updated_at":"2015-06-02T19:30:58Z","body":"I'm not sure if adding this exception is a good idea - an exception to an exception is always a bit dicey. \r\n\r\nDo you have just one .eslintrc file in your project? If so, you might just want to pass it with `-c` on the command line"}}