ESLint ignoring .eslintignore #8135
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
triage
An ESLint team member will look at this issue soon
Hi there,
I'm trying to ignore certain patterns on eslint. I tried both --ignore-pattern and .eslintignore but none is working. I also tried different patterns.
I can see that without removing ** everything works. Is when adding (**) that the rule is not applied correctly.
Tell us about your environment
File Structure:
node_modules
.eslintrc.js
src
--api
---- news
------node_modules
------handler.js
------ ...
Command
Does not work
eslint . --quiet --ignore-pattern **\node_modules\ ** \ *.js
Works
eslint . --quiet --ignore-pattern *.test.js
The text was updated successfully, but these errors were encountered: