-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Testing: Enable no-unused-disable ESLint Comments plugin rule #72940
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
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: 0 B Total Size: 2.45 MB ℹ️ View Unchanged
|
|
Flaky tests detected in ef8fe11. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/19073080515
|
manzoorwanijk
left a comment
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.
Thank you. I love these clean ups.
These files are auto-generated, and expected to have some formatting issues. However, blanket disabling Prettier is incompatible with no-unused-disable because some of the files are fine as-is. A better long-term solution would be to apply Prettier to the generated output, similar to what's done in `packages/theme` for Theme artifacts.
1e2ff55 to
486780a
Compare
What?
Updates project ESLint configuration to enable
eslint-comments/no-unused-disable.Why?
Unused disables are ineffective and misleading technical debt.
We already have ESLint rules around best practices for ESLint comments, so this is a reasonable rule to enable.
How?
Enables the rule. We already have the plugin, but it's not part of the "recommended" preset.
Testing Instructions
npm run lint:jsshould pass.