Skip to content

ESLint plugin for some things in JS that could prove dangerous

License

Notifications You must be signed in to change notification settings

igneel64/eslint-plugin-dangerous

Repository files navigation

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
    }
}

About

ESLint plugin for some things in JS that could prove dangerous

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published