{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/9535","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/9535/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/9535/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/9535/events","html_url":"https://github.com/eslint/eslint/issues/9535","id":269372988,"number":9535,"title":"ESLint looks for .eslintrc.* files even when `-c` flag is used","user":{"login":"not-an-aardvark","id":11638619,"avatar_url":"https://avatars2.githubusercontent.com/u/11638619?v=4","gravatar_id":"","url":"https://api.github.com/users/not-an-aardvark","html_url":"https://github.com/not-an-aardvark","followers_url":"https://api.github.com/users/not-an-aardvark/followers","following_url":"https://api.github.com/users/not-an-aardvark/following{/other_user}","gists_url":"https://api.github.com/users/not-an-aardvark/gists{/gist_id}","starred_url":"https://api.github.com/users/not-an-aardvark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/not-an-aardvark/subscriptions","organizations_url":"https://api.github.com/users/not-an-aardvark/orgs","repos_url":"https://api.github.com/users/not-an-aardvark/repos","events_url":"https://api.github.com/users/not-an-aardvark/events{/privacy}","received_events_url":"https://api.github.com/users/not-an-aardvark/received_events","type":"User","site_admin":false},"labels":[{"id":185518888,"url":"https://api.github.com/repos/eslint/eslint/labels/breaking","name":"breaking","color":"e11d21","default":false},{"id":45711350,"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929","default":true},{"id":82922548,"url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8","default":false},{"id":255319420,"url":"https://api.github.com/repos/eslint/eslint/labels/evaluating","name":"evaluating","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-29T05:37:12Z","updated_at":"2017-10-29T18:35:02Z","closed_at":null,"author_association":"OWNER","body":"<!--\r\n    ESLint adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct).\r\n\r\n    This template is for bug reports. If you are reporting a bug, please continue on. If you are here for another reason, please see below:\r\n\r\n    1. To propose a new rule: https://eslint.org/docs/developer-guide/contributing/new-rules\r\n    2. To request a change: https://eslint.org/docs/developer-guide/contributing/changes\r\n    3. If you have any questions, please stop by our chatroom: https://gitter.im/eslint/eslint\r\n\r\n    Note that leaving sections blank will make it difficult for us to troubleshoot and we may have to close the issue.\r\n-->\r\n\r\n**Tell us about your environment**\r\n\r\n* **ESLint Version:** master\r\n* **Node Version:** 8.8.0\r\n* **npm Version:** 5.4.2\r\n\r\n**What parser (default, Babel-ESLint, etc.) are you using?**\r\n\r\ndefault\r\n\r\n**Please show your full configuration:**\r\n\r\n<details>\r\n<summary>Configuration</summary>\r\n\r\n<!-- Paste your configuration below: -->\r\n```yaml\r\n# foo.yml\r\n\r\nrules:\r\n  semi: 2\r\n```\r\n\r\n```yaml\r\n# .eslintrc.yml\r\n\r\nrules:\r\n  no-console: 2\r\n```\r\n\r\n</details>\r\n\r\n**What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.**\r\n\r\n<!-- Paste the source code below: -->\r\n\r\n```\r\nconsole.log('foo');\r\n```\r\n\r\n<!-- Paste the command you used to run ESLint: -->\r\n```bash\r\neslint -c foo.yml foo.js\r\n```\r\n\r\n**What did you expect to happen?**\r\n\r\nI expected no errors to be reported, because I used the `-c` flag to specify a config, so I did not expect ESLint to also look for other config files in the filesystem.\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\n\r\n```\r\n1:1   error  Unexpected console statement         no-console\r\n```\r\n\r\nIn addition to the config file specified with `-c`, ESLint also looked for `.eslintrc` files in the current directory, so the `no-console` rule was enabled."},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/340283782","html_url":"https://github.com/eslint/eslint/issues/9535#issuecomment-340283782","issue_url":"https://api.github.com/repos/eslint/eslint/issues/9535","id":340283782,"user":{"login":"platinumazure","id":284282,"avatar_url":"https://avatars0.githubusercontent.com/u/284282?v=4","gravatar_id":"","url":"https://api.github.com/users/platinumazure","html_url":"https://github.com/platinumazure","followers_url":"https://api.github.com/users/platinumazure/followers","following_url":"https://api.github.com/users/platinumazure/following{/other_user}","gists_url":"https://api.github.com/users/platinumazure/gists{/gist_id}","starred_url":"https://api.github.com/users/platinumazure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/platinumazure/subscriptions","organizations_url":"https://api.github.com/users/platinumazure/orgs","repos_url":"https://api.github.com/users/platinumazure/repos","events_url":"https://api.github.com/users/platinumazure/events{/privacy}","received_events_url":"https://api.github.com/users/platinumazure/received_events","type":"User","site_admin":false},"created_at":"2017-10-29T18:35:02Z","updated_at":"2017-10-29T18:35:02Z","author_association":"MEMBER","body":"I agree with @gyandeeps, this is as designed. We could update the docs to clarify that it might make sense to also use `--no-eslintrc` if no other config files should be used.\r\n\r\nI do use this feature in combination with ESLint config files, so please let's not change this if possible..."}}
{"actor":{"display_login":"platinumazure"}}