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
feat: emit warning when .eslintignore
file is detected
#17952
Conversation
✅ Deploy Preview for docs-eslint canceled.
|
Can we maybe move the patterns into |
I'm pretty sure there are tests that rely on |
In #17204, we updated tests to not rely on this project's eslint config files. I'm not 100% sure about the |
Co-authored-by: Bryan Mishkin <698306+bmish@users.noreply.github.com>
I'll try this and see how much we can reduce such warnings. |
I've removed the root |
We still need to have some tests that rely on |
We could suppress these warnings in test files that are producing them, for example this way: sinon.stub(process, "emitWarning").withArgs(sinon.match.any, "ESLintIgnoreWarning").returns();
process.emitWarning.callThrough(); |
I've updated the corresponding tests to suppress the warnings. |
Now that we have found a way to suppress the warnings while running tests, what do you think about restoring the |
That makes sense, I think we can restore the |
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Would like @mdjermanovic to verify before merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks for picking this up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just two small suggestions about the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:
What changes did you make? (Give an overview)
Fixes #17831
Is there anything you'd like reviewers to focus on?
Now a lot of warnings are polluting the test command output