0.0.1 • Published 5 years ago
eslint-plugin-disable-checker v0.0.1
eslint-plugin-disable-checker
This plugin throw errors at each eslint-disable comment inside the code
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-disable-checker
:
$ npm install eslint-plugin-disable-checker --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-disable-checker
globally.
Usage
Add disable-checker
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"disable-checker"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"disable-checker/disable-comment": 2
}
}
Supported Rules
- disable-comment
This rule will throw a warning in every eslint-disable comment found
Thanks
This project scaffold was generated by generator-eslint
0.0.1
5 years ago