Skip to content

Files

Latest commit

 

History

History
19 lines (13 loc) · 433 Bytes

File metadata and controls

19 lines (13 loc) · 433 Bytes

Pattern: Empty eslint-disable comment

Issue: -

Description

Using eslint-disable without specifying rule names disables all rules, which can lead to overlooking ESLint warnings unintentionally. Always specify the exact rules to disable.

Examples

Example of incorrect code:

var foo; //eslint-disable-line

Example of correct code:

var foo; //eslint-disable-line no-unused-vars