disabled-rules

0.1.0 • Public • Published

Finds all eslint-disable keywords and reports all the exceptions your code base makes.

Installation:

npm install disabled-rules -g

Usage:

$ disabled              # will search for eslint-disable keywords in cwd 
$ disabled lib/ test/   # will search only in lib and test 

What It Does:

For example, if a file contained these lines somewhere in it...

/* eslint-disable */
// eslint-disable other-stuff
// eslint-disable-line sams-code
// eslint-disable-next-line crazy-stuff, more-crazy-stuff
/* eslint-enable */

The program would return:

src/index.js
  Line 91: DISABLED EVERYTHING
  Line 92: DISABLED other-stuff
  Line 93: LINE DISABLED jims-code
  Line 94: NEXT LINE DISABLED crazy-stuff, more-crazy-stuff
  Line 95: ENABLED EVERYTHING
 
5 eslint exceptions have been found
The linting rules should be re-evaluated for this project

Package Sidebar

Install

npm i disabled-rules

Weekly Downloads

1

Version

0.1.0

License

SEE LICENSE IN LICENSE.txt

Unpacked Size

6.82 kB

Total Files

8

Last publish

Collaborators

  • binarybeard