eslint-plugin-dangerous
This plugin is made to let you know of some of JavaScript's quirks that might lead to headaches later on in your program.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @igneel64/eslint-plugin-dangerous
:
$ npm install @igneel64/eslint-plugin-dangerous --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @igneel64/eslint-plugin-dangerous
globally.
Usage
Add dangerous
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@igneel64/dangerous"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@igneel64/dangerous/write-for-humans": 2
}
}