npm.io
0.0.6 • Published 8 years ago

eslint-plugin-callback

Licence
ISC
Version
0.0.6
Deps
1
Size
8 kB
Vulns
0
Weekly
0

eslint-plugin-callback

Checks that all callbacks are called

Installation

You'll first need to install ESLint:

$ sudo npm install -g eslint

Next, install eslint-plugin-callback:

$ sudo npm install -g eslint-plugin-callback

Usage

Add callback to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "callback"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "callback/callback": 1
    }
}

Keywords