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 prevent --ignore-pattern #6260
Comments
I think the documentation just needs to be updated. |
@nzakas If that's how we want |
@nzakas What would be the reasoning for also ignoring |
@alberto sorry, I'm not sure what you're asking. @platinumazure I don't think so. Again, as I said in my comment, So, I'm still of the mind that the documentation is just incorrect and should be updated. |
@nzakas Okay. I do think the use case I have outlined is valid, but I don't feel strongly enough about it to consider your interpretation wrong. If someone requests an enhancement to allow patterns but suppress ignore files, we can revisit then. I agree this just needs a docs update in that case. Should this say bug/cli/docs/accepted then? |
Sorry, I'll try to explain myself better. What you are saying is that I was thinking it could be somewhat useful to not invalidate it (and it's a trivial change to do so). So, for example someone with an |
According to the doc the purpose of
--no-ignore
is to "Disables excluding of files from.eslintignore
and--ignore-path
files. However it also prevents any usage of--ignore-pattern
.What version of ESLint are you using?
2.10.2
What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:
N/A
What did you do? Please include the actual source code causing the issue.
/bin/eslint.js test.js --no-ignore --ignore-pattern 'test.js'
What did you expect to happen?
test.js
is still ignoredWhat actually happened? Please include the actual, raw output from ESLint.
test.js
was lintedThe text was updated successfully, but these errors were encountered: