Skip to content

chore: disable eslint-comments/no-unused-disable rule#20578

Merged
fasttime merged 1 commit intomainfrom
remove-no-unused-disable
Mar 2, 2026
Merged

chore: disable eslint-comments/no-unused-disable rule#20578
fasttime merged 1 commit intomainfrom
remove-no-unused-disable

Conversation

@mdjermanovic
Copy link
Member

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

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:

Disables @eslint-community/eslint-comments/no-unused-disable rule.

This rule is deprecated in favor of the built-in linterOptions.reportUnusedDisabledDirectives option which we already have enabled so there's no need to use this rule in our config anymore.

Also, this rule's deprecation meta is invalid which currently causes our CI to fail.

What changes did you make? (Give an overview)

Removed this rule from eslint-config-eslint.

Is there anything you'd like reviewers to focus on?

@mdjermanovic mdjermanovic requested a review from a team as a code owner March 2, 2026 07:03
@eslint-github-bot eslint-github-bot bot added the chore This change is not user-facing label Mar 2, 2026
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Mar 2, 2026
@netlify
Copy link

netlify bot commented Mar 2, 2026

Deploy Preview for docs-eslint canceled.

Name Link
🔨 Latest commit 72e429b
🔍 Latest deploy log https://app.netlify.com/projects/docs-eslint/deploys/69a53631a66aed000840c16a

Copy link
Member

@fasttime fasttime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@fasttime fasttime moved this from Needs Triage to Implementing in Triage Mar 2, 2026
@fasttime fasttime added the accepted There is consensus among the team that this change meets the criteria for inclusion label Mar 2, 2026
@fasttime fasttime merged commit 53ca6ee into main Mar 2, 2026
40 of 41 checks passed
@fasttime fasttime deleted the remove-no-unused-disable branch March 2, 2026 07:32
@github-project-automation github-project-automation bot moved this from Implementing to Complete in Triage Mar 2, 2026
@SukkaW
Copy link

SukkaW commented Mar 2, 2026

@mdjermanovic Maybe ESLint should validate the deprecated format instead of just panicking with TypeError?

@lumirlumir
Copy link
Member

Just for reference, the PR with the fix was merged at eslint-community/eslint-plugin-eslint-comments#310 and released in v4.7.1.


@SukkaW I've briefly written my thoughts in the comment (eslint-community/eslint-plugin-eslint-comments#310 (comment)), but it might be worth discussing this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion chore This change is not user-facing

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

4 participants