0.0.2 • Published 2 years ago
eslint-plugin-api-exist v0.0.2
eslint-plugin-api-exist
北斗接口校验库
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-api-exist:
npm install eslint-plugin-api-exist --save-devUsage
Add api-exist to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"api-exist"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"api-exist/rule-name": 2
}
}Rules
TODO: Run eslint-doc-generator to generate the rules list.