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