Skip to content

Change Request: Config to Disallow Disable #15631

Description

@Brian-Bartels

ESLint version

8.0.0

What problem do you want to solve?

ESLint currently allows users to disable rules. In large codebases with MANY Prs, some users disable lint rules without really knowing what they are doing. This slips by PRs because reviewers sometimes don't actually review ¯\_(ツ)_/¯

There exists rules such as no-abusive-eslint-disable but that in and of itself can be disabled

What do you think is the correct solution?

I'd like ESLint to allow users to configure certain rules to be exempt from all comment style disables

eslintrc: "noExtraSemi": ["error", "dissalowDisable"]
eslintrc: "noExtraSemi": ["forbid"]

so in code

// eslint-disable-next-line noExtraSemi
const foo = 5;;

Would still result in an error

Participation

  • I am willing to submit a pull request for this change.

Additional comments

No response

Activity

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

Metadata

Metadata

Assignees

Labels

coreRelates to ESLint's core APIs and featuresenhancementThis change enhances an existing feature of ESLintfeatureThis change adds a new feature to ESLintneeds designImportant details about this change need to be discussed

Type

No type

Projects

  • Status
    Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions