0.0.1 • Published 2 years ago

eslint-plugin-lifecyclelint v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-lifecyclelint

不能包含某些生命周期的ESLint rule

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-lifecyclelint:

npm install eslint-plugin-lifecyclelint --save-dev

Usage

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

{
    "plugins": [
        "lifecyclelint"
    ]
}

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

{
    "rules": {
        "lifecyclelint/lifecycle-no-life": ["error", {"lifeName": ["beforeCreate", "mounted"]}]
    }
}

Supported Rules

  • Fill in provided rules here