-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
chore: report and fix unused ESLint disable directives #12548
chore: report and fix unused ESLint disable directives #12548
Conversation
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.
Those should be fixed 🙃
We can't make suggestions to arbitrary files. Are those issues auto-fixable? |
I'll go fix them myself then, so you can see what ESLint wants us/me to change. 😉
Not with our current ESLint 😞, but we can with ESLint 8! 🥳 🎈 Line 248 in 6167362
Quote from ESLint 8 release notes on their blog 1
Footnotes |
ok, so leave as is for now, I'll try to upgrade eslint first. |
This comment has been minimized.
This comment has been minimized.
ref #12550 |
This comment has been minimized.
This comment has been minimized.
🎉 This PR is included in version 29.3.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes:
--report-unused-disable-directives
1 to make ESLint complain when we leave non-functional directives in the codeContext:
I've deliberately not fixed any ESLint errors, so that you can check the GitHub Action logs to see what the output is.
I'll take suggestions from you if the directive is really no longer used via GitHub review suggestions. 😉
Please read the ESLint documentation as well, to see if this is suitable for us.
ESLint log (current at time of opening PR)
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via:
Footnotes
https://eslint.org/docs/user-guide/command-line-interface#--report-unused-disable-directives ↩