npm.io
2.0.7 • Published 6 years ago

@zaihui/eslint-plugin-customizing

Licence
ISC
Version
2.0.7
Deps
1
Size
4 kB
Vulns
0
Weekly
0

eslint-plugin-customizing

customize rule for zaihui

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-customizing:

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

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-customizing globally.

Usage A

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

{
    "plugins": [
        "@zaihui/customizing"
    ]
}

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

{
    "rules": {
        "@zaihui/customizing/rule-name": 2
    }
}

Usage B

{
    "extends": ["plugin:@zaihui/customizing/recommended"],
}

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

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

Supported Rules

  • Fill in provided rules here

Keywords