Pattern: Duplicate eslint-disable
comment
Issue: -
Using duplicate eslint-disable
comments (a mix of wide-range and narrow-range directive comments) can cause warnings to be overlooked in the future. Each rule should only be disabled once in a given context.
Example of incorrect code:
/*eslint-disable no-undef */
var foo = bar() //eslint-disable-line no-undef
Example of correct code:
/*eslint-disable no-undef */
var foo = bar()
var foo = bar() //eslint-disable-line no-undef