0.0.2 • Published 6 months ago
eslint-config-lylint v0.0.2
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
}
}