Replies: 1 comment 2 replies
-
https://eslint.org/docs/next/use/configure/configuration-files |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
Node version:
npm version:
Local ESLint version:
Global ESLint version:
Operating System:
What parser are you using?
Default (Espree)
What did you do?
as per the doce
.eslintignore
is being ignored if--ignore-path .gitignore
is used, which is logicalbut in addition to these rules in .gitignore, we often need to apply some patterns, particularly for Eslint, I guess that
ignorePatterns[]
should be taken into consideration and take precedence over both .gitignore or .eslintignore.what happens is that providing
--ignore-path
causes thatignorePatterns[]
to be not usedWhat did you expect to happen?
gitignore[]
should take precedence over .gitignoreWhat actually happened?
gitignore[]
is being ignored if .gitignore is usedLink to Minimal Reproducible Example
.
Participation
Additional comments
No response
Beta Was this translation helpful? Give feedback.
All reactions