Skip to content

Bug: report-unused-disable-directives should report unnecessary eslint-enable #16156

@kkmuffme

Description

@kkmuffme

Environment

eslint playground

What parser are you using?

Default (Espree)

What did you do?

eslint playground

What did you expect to happen?

When using report-unused-disable-directives, it would be perfect if it would also report unnecessary eslint-enable.
This rule reports unnecessary eslint-disable, which then often leads to people removing those, but keeping orphaned eslint-enable comments.

What actually happened?

No error.

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionarchived due to ageThis issue has been archived; please open a new issue for any further discussioncoreRelates to ESLint's core APIs and featuresfeatureThis change adds a new feature to ESLint

Type

No type

Projects

Status

Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions