# eslint-comments/no-duplicate-disable

disallow duplicate eslint-disable comments

  • 🌟 The "extends": "plugin:eslint-comments/recommended" property in a configuration file enables this rule.

Duplicate of eslint-disable directive-comments implies that there is a mix of wide-range directive-comments and narrow-range directive-comments. The mix may cause to overlook ESLint warnings in future.

This rule warns duplicate eslint-disable directive-comments.

# Rule Details

Examples of 👎 incorrect code for this rule:

/*eslint eslint-comments/no-duplicate-disable: error */ /*eslint-disable no-undef */ var foo = bar() //eslint-disable-line no-undef
Now loading...

Examples of 👍 correct code for this rule:

/*eslint eslint-comments/no-duplicate-disable: error */ /*eslint-disable no-undef */ var foo = bar()
Now loading...
/*eslint eslint-comments/no-duplicate-disable: error */ var foo = bar() //eslint-disable-line no-undef
Now loading...