Skip to content

Commit

Permalink
Enable the unicorn/no-abusive-eslint-disable ESLint plugin rule
Browse files Browse the repository at this point in the history
This rule prevents *accidental* disabling of ESLint completely, be ensuring that inline ESLint disable comments always list the affected rules explicitly.

Please see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/no-abusive-eslint-disable.md for additional information.
  • Loading branch information
Snuffleupagus committed Oct 22, 2020
1 parent e389ed6 commit 60d2ff5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"mozilla/use-includes-instead-of-indexOf": "error",
"no-unsanitized/method": "error",
"no-unsanitized/property": "error",
"unicorn/no-abusive-eslint-disable": "error",
"unicorn/no-array-instanceof": "error",
"unicorn/prefer-starts-ends-with": "error",

Expand Down

0 comments on commit 60d2ff5

Please sign in to comment.