-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Set ignore path in .eslintrc #3529
Comments
Thanks for the issue! We get a lot of issues, so this message is automatically posted to each one to help you check that you've included all of the information we need to help you. Reporting a bug? Please be sure to include:
Requesting a new rule? Please be sure to include:
Requesting a feature? Please be sure to include:
Including this information in your issue helps us to triage it and get you a response as quickly as possible. Thanks! |
I don’t think this is possible, because you can have multiple |
Also .eslintrc's are constructed during traversing, so being able to specify it in .eslintrc would not be possible at all. You can, however, specify ignore pattern (or ignore path) on CLI. |
We investigated this before and determined it would be a lot of work for something that we already have via |
You can set As time goes on we find ourselves linting all the things. Having separate .gitignore, .eslintignore, .stylelintignore, etc. files that contain the same rules is tedious. Junior devs generally know to update .gitignore when messing with the project but always forget the separate linting configs. It would be awesome if eslint supported setting The only thing preventing the dream of all linting config in package.json, all referencing .gitignore is this issue 😢 |
Would be very nice to have! |
This has my upvote! |
Wish this wasn't closed. We've managed to wrangle all of our dotfiles into their own directory except for this little guy. |
You got my upvote! |
any news on this? How can I tell eslint to ignore the same files specified in my .gitignore in the package.json eslintConfig entry? |
With the following, editors don't know how to exclude files: eslint . --ignore-path .gitignore eslint/eslint#3529
With the following, editors don't know how to exclude files: eslint . --ignore-path .gitignore eslint/eslint#3529
@nzakas This should be re-opened. Multiple config files is not right. BTW, referencing .gitignore does not solve it. You might have bundled dependencies to be commited to Git that are not to be linted. |
I came here looking for a ignore property for |
The ESLint docs show an example of how to use
.gitignore
as the ignore path.This seems a very useful feature to me. However, my editors don't support this.
It would be useful to specify the ignore-path in
.eslintrc
instead of as a command line parameter. This way editors or whatever tools using ESLint don't have to supply this.The text was updated successfully, but these errors were encountered: