azzlzzxz / eslint-plugin-custom

eslint插件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-custom

customize eslint plugin

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-custom:

npm install eslint-plugin-custom --save-dev

Usage

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

{
  "plugins": ["customs"]
}

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

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

Rules

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

About

eslint插件


Languages

Language:JavaScript 100.0%