Skip to content

Files

Latest commit

 

History

History
31 lines (20 loc) · 628 Bytes

no-unused-enable.md

File metadata and controls

31 lines (20 loc) · 628 Bytes

Pattern: Unused eslint-enable

Issue: -

Description

This rule warns eslint-enable directive-comments which have no effect.

Example of incorrect code:

/*eslint eslint-comments/no-unused-enable: error */

/*eslint-disable no-undef */
doSomething()
/*eslint-enable no-undef-init */

Example of correct code:

/*eslint eslint-comments/no-unused-enable: error */

/*eslint-disable no-undef */
doSomething()
/*eslint-enable no-undef */

Further Reading