0.0.2 • Published 3 years ago
eslint-plugin-eslint-test v0.0.2
eslint-plugin-eslint-test
eslint自定义规则测试
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-eslint-test:
npm install eslint-plugin-eslint-test --save-devUsage
Add eslint-test to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"eslint-test"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"eslint-test/rule-name": 2
}
}Rules
TODO: Run eslint-doc-generator to generate the rules list.