0.1.3 • Published 1 year ago

eslint-plugin-lints v0.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

eslint-plugin-lint

eslint自定义插件

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-lint:

npm install eslint-plugin-lint --save-dev

Next install 配置依赖插件

npm install -D eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks @typescript-eslint/parser @typescript-eslint/eslint-plugin

Usage

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

{
    "plugins": [
        "lint"
    ]
}

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

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

Configurations

TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).

Rules

TODO: Run eslint-doc-generator to generate the rules list.

参考文档