{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/6206","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/6206/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/6206/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/6206/events","html_url":"https://github.com/eslint/eslint/issues/6206","id":155383954,"number":6206,"title":"Having .eslintrc in the root dir causes eslint tests to fail","user":{"login":"fatfisz","id":6004414,"avatar_url":"https://avatars.githubusercontent.com/u/6004414?v=3","gravatar_id":"","url":"https://api.github.com/users/fatfisz","html_url":"https://github.com/fatfisz","followers_url":"https://api.github.com/users/fatfisz/followers","following_url":"https://api.github.com/users/fatfisz/following{/other_user}","gists_url":"https://api.github.com/users/fatfisz/gists{/gist_id}","starred_url":"https://api.github.com/users/fatfisz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatfisz/subscriptions","organizations_url":"https://api.github.com/users/fatfisz/orgs","repos_url":"https://api.github.com/users/fatfisz/repos","events_url":"https://api.github.com/users/fatfisz/events{/privacy}","received_events_url":"https://api.github.com/users/fatfisz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/accepted","name":"accepted","color":"0052cc"},{"url":"https://api.github.com/repos/eslint/eslint/labels/chore","name":"chore","color":"c2e0c6"},{"url":"https://api.github.com/repos/eslint/eslint/labels/infrastructure","name":"infrastructure","color":"666666"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-17T23:14:48Z","updated_at":"2016-05-19T17:25:02Z","closed_at":null,"body":"**What version of ESLint are you using?**\r\n2.10.2\r\n**What did you do?**\r\nI cloned the `eslint` repo and ran tests.\r\n**What did you expect to happen?**\r\nNo errors.\r\n**What actually happened?**\r\nA few errors (about 70 or so).\r\n\r\nI think I might be the only one that has such a troubling configuration, because I've already created a few PRs to other quite popular repos, which added `\"root\": true` to the `.eslintrc` config file.\r\n\r\nThe problem is this: I have a \"global\" `.eslintrc` file that sits in the root dir. So every project that uses `eslint` and doesn't have `\"root\": true` set is also using my \"global\" config. It turns out that `eslint` itself has this problem, or rather `eslint` tests :smile: \r\n\r\nChanging the name of my \"global\" config file to something random solved the problem (all tests passed).\r\n\r\nThe simplest way to reproduce this is to create an `.eslintrc` file in the root dir with this content:\r\n```\r\n{\r\n  \"env\": {\r\n    \"es6\": true\r\n  }\r\n}\r\n```\r\n\r\nFor me this caused 13 errors to emerge, for example:\r\n```\r\n  1) Config findLocalConfigFiles() should return an empty array when an .eslintrc file is not found:\r\n     AssertionError: expected [ 'D:\\\\.eslintrc' ] to have a length of 0 but got 1\r\n```\r\nand\r\n```\r\n  6) Config getConfig() should merge configs when local .eslintrc overrides parent .eslintrc:\r\n\r\n      AssertionError: expected { es6: true, node: true } to deeply equal { node: true }\r\n      + expected - actual\r\n\r\n       {\r\n      -  \"es6\": true\r\n         \"node\": true\r\n       }\r\n```"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/220394231","html_url":"https://github.com/eslint/eslint/issues/6206#issuecomment-220394231","issue_url":"https://api.github.com/repos/eslint/eslint/issues/6206","id":220394231,"user":{"login":"ilyavolodin","id":1380062,"avatar_url":"https://avatars.githubusercontent.com/u/1380062?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyavolodin","html_url":"https://github.com/ilyavolodin","followers_url":"https://api.github.com/users/ilyavolodin/followers","following_url":"https://api.github.com/users/ilyavolodin/following{/other_user}","gists_url":"https://api.github.com/users/ilyavolodin/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyavolodin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyavolodin/subscriptions","organizations_url":"https://api.github.com/users/ilyavolodin/orgs","repos_url":"https://api.github.com/users/ilyavolodin/repos","events_url":"https://api.github.com/users/ilyavolodin/events{/privacy}","received_events_url":"https://api.github.com/users/ilyavolodin/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T17:25:02Z","updated_at":"2016-05-19T17:25:02Z","body":"I still think the original issue is correct and we should add `root: true` to our config. I know I've ran into an issue when I created .eslintrc file for testing in the folder above eslint, and then all of my unit tests started failing within ESLint. Took me a little while to figure out what's going on."}}