eslint-plugin-xupea

0.0.8 • Public • Published

eslint-plugin-xupea

sub and unsub should be paired

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-xupea:

$ npm install eslint-plugin-xupea --save-dev

Usage

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

{
    "plugins": [
        "xupea"
    ]
}

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

{
    "rules": {
        "xupea/rule-name": 2
    }
}

Supported Rules

  • xupea/unsubscribe: 强制在componentWillUnmount方法中移除指定事件的监听器

Package Sidebar

Install

npm i eslint-plugin-xupea

Weekly Downloads

1

Version

0.0.8

License

ISC

Unpacked Size

11 kB

Total Files

7

Last publish

Collaborators

  • xupea-real