default ignore node_modules inside monorepos
See original GitHub issueThe version of ESLint you are using.
5.0.0-alpha.2
The problem you want to solve.
I’d like to configure standard
in the root of my monorepo. By default eslint
only ignores top level node_modules
. I see no reason why I’d want to lint any node_modules
folder by default. The problem can be worked around by providing extra configuration. But most people wouldn’t want their inner node_modules
linted. So I’d like to save those people the hassle of figuring this out and provide it as default.
Relevant issue https://github.com/standard/standard/issues/1182
Your take on the correct solution to problem.
I didn’t dig through the code yet but I’m assuming there’s a default defined for ignoring. I’d like this default changed to **/node_modules/
PS. I don’t mind cooking up a PR for this
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:8 (3 by maintainers)
Top GitHub Comments
This does seem like a sane default to me, though I’d be hesitant about changing this in a non-major release.
Unfortunately, it looks like there wasn’t enough interest from the team or community to implement this change. While we wish we’d be able to accommodate everyone’s requests, we do need to prioritize. We’ve found that issues failing to reach accepted status after 21 days tend to never be accepted, and as such, we close those issues. This doesn’t mean the idea isn’t interesting or useful, just that it’s not something the team can commit to.
Thanks for contributing to ESLint and we appreciate your understanding.