0.0.3 • Published 8 years ago
eslint-plugin-change-listeners v0.0.3
eslint-plugin-change-listeners
It reports several things:
- When you forget to call removeChangeListener
- When you forget to remove removeChangeListener
- When you call different callback in (add/remove)ChangeListener
- When you do not use class method for the callback
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-change-listeners:
$ npm install eslint-plugin-change-listeners --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-change-listeners globally.
Usage
Add change-listeners to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"change-listeners"
]
}0.0.3
8 years ago