ly-lint
v0.4.4
Published
通用lint规则配置插件
Downloads
8
Maintainers
Readme
dp-eslint-plugin
后台自定义插件
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install dp-eslint-plugin
:
npm install dp-eslint-plugin --save-dev
Usage
Add dp-lint
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"dp-lint"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"dp-lint/rule-name": 2
}
}