disallow a eslint-enable comment for multiple eslint-disable comments
🌟 The "extends": "plugin:@eslint-community/eslint-comments/recommended" property in a configuration file enables this rule.
eslint-enable directive-comments can enable rules which are disabled by different eslint-disable directive-comments. It can enable a rule unintentionally.
js
/*eslint-disable no-undef */f()/*eslint-disable no-var */var a/*eslint-enable */ "※ Enables both no-undef and no-var."
This rule warns eslint-enable directive-comments which enable rules for multiple eslint-disable directive-comments.
@eslint-community/eslint-comments/no-aggregating-enable
"extends": "plugin:@eslint-community/eslint-comments/recommended"
property in a configuration file enables this rule.eslint-enable
directive-comments can enable rules which are disabled by differenteslint-disable
directive-comments. It can enable a rule unintentionally.This rule warns
eslint-enable
directive-comments which enable rules for multipleeslint-disable
directive-comments.Rule Details
👎 Examples of incorrect code for this rule:
👍 Examples of correct code for this rule: