New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESLint looks for .eslintrc.* files even when -c
flag is used
#9535
ESLint looks for .eslintrc.* files even when -c
flag is used
#9535
Comments
Does it also happen with |
I dont think its a bug, it was designed this way. You have to use
|
I agree with @gyandeeps, this is as designed. We could update the docs to clarify that it might make sense to also use I do use this feature in combination with ESLint config files, so please let's not change this if possible... |
I'd be okay with changing this in a major release if it's possible to combine with a |
Ok, it seems like this is working as designed, so I'll update it to be a documentation issue. I think we should document more clearly that |
Users must use --no-eslintrc to prevent `.eslintrc.*` files from being used
@WalterBoles I've created #9847 to address this, which should be merged later this week and will be updated on eslint.org when we cut a new minor release on Friday or Saturday. |
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
I 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.What actually happened? Please include the actual, raw output from ESLint.
In addition to the config file specified with
-c
, ESLint also looked for.eslintrc
files in the current directory, so theno-console
rule was enabled.The text was updated successfully, but these errors were encountered: