eslint-plugin-change-listeners

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-change-listeners

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • vojtatranta
  • jakubzitny
  • petrbrzek