-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
Why is eslint-plugin-import configured to ignore node_modules? #2457
Comments
I added that in b45fdcd, because it's what airbnb was using internally at the time. https://github.com/import-js/eslint-plugin-import#importignore suggests that in fact we should remove node_modules from this setting - I'd want to treat that as semver-major, however, since it could result in a lot more warnings. |
I'm happy to write that PR. How do you manage releases on this library? Is there a schedule/readmap for upcoming semver-major releases? Is this change big enough to merit its own major release? |
There’s no schedule, and major releases are avoided for as long as possible. It’s definitely not big enough to warrant one solely for that, since it’s a change you can make in your own config. We can queue up the PR, though, and then whenever a major release does happen, it will be pulled in. |
Fair enough, that makes sense. I'll put up a PR and link it to this issue. Thanks! |
In eslint-config-airbnb-base/rules/imports.js,
import/ignore
is set to ignorenode_modules
and a number of non-js files (coffee, css, etc.)Ignoring
node_modules
means that none of the lint analysis can happen against external libraries. In particular, I care aboutimport/named
flagging things likeWhat's the rationale for this change? We can already use eslint's native ignore functionality to avoid linting all of node_modules, right?
The text was updated successfully, but these errors were encountered: