0.0.8 • Published 4 years ago

eslint-plugin-xupea v0.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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方法中移除指定事件的监听器
0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago