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
--no-ignore
should not un-ignore node_modules
#5547
Comments
Agree. |
Wouldn't this be a breaking change? |
Personally I see it as a bug fix, since the current behavior is not as On Fri, Mar 11, 2016, 12:37 alberto notifications@github.com wrote:
|
I just realized that if |
@alberto Is that really so, given one could specify ignore patterns in the CLI using |
|
@platinumazure not very intuitive, but 👍 given the context. |
Fix: `--no-ignore` should not un-ignore default ignores (fixes #5547)
Unfortunately it looks like #5648 did not fully fix this issue. It addressed it inside of Testing manually on the cli reveals that |
So this would only affect people using the API? |
The fix only was made in |
Ooops, sorry. I would swear I had also manually tested it... :( |
Working on this. |
What version of ESLint are you using?
Master
What configuration and parser (Espree, Babel-ESLint, etc.) are you using?
Espree
What did you do? Please include the actual source code causing the issue.
Ran eslint with
--no-ignore
flagWhat did you expect to happen?
Ignore settings from
.eslintignore
to be disregarded, as indicated in docs.What actually happened? Please include the actual, raw output from ESLint.
ESLint linted all files within
node_modules
.Despite having tests to assert that
--no-ignore
will causenode_modules
to be linted, I think this is not the behavior we expect or want.The --no-ignore docs say:
They don't say anything about also disabling default ignores.
After #5410 is fixed, it will be possible to lint within node_modules by using a negation pattern. (e.g.
!/node_modules/package-to-lint/
), at which time I think it would make sense to keep--no-ignore
from linting/node_modules/
and/bower_components/
.Does the team agree?
The text was updated successfully, but these errors were encountered: