1.0.3 • Published 3 years ago
eslint-plugin-hxlint v1.0.3
eslint-plugin-korolint
sany公司定制eslint rule
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-hxlint
:
$ npm install eslint-plugin-hxlint --save-dev
Usage
Usage 1:
Add hxlint
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"hxlint"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"hxlint/rule-name": 2
}
}
Usage 2:vueRule and reactRule
{
"extends": [ "plugin:hxlint/rule-name" ]
}
Supported Rules
Fill in provided rules here
vue/recommended
react/recommended
eslint/recommended
npm update version
npm version major # 大版本号加 1,其余版本号归 0
npm version minor # 小版本号加 1,修订号归 0
npm version patch # 修订号加 1