0.0.3 • Published 7 years ago

eslint-plugin-change-listeners v0.0.3

Weekly downloads
246
License
ISC
Repository
-
Last release
7 years ago

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

Next, install eslint-plugin-change-listeners:

$ npm install eslint-plugin-change-listeners --save-dev

Note: 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"
    ]
}