0.1.2 • Published 5 years ago
eslint-plugin-fsp v0.1.2
eslint-plugin-fsp
操作符、金额相关字段校验
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-fsp:
$ npm install eslint-plugin-fsp --save-devUsage
Add arithmetic-detect to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"arithmetic-detect"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"fsp/rule-name": 2
}
}Supported Rules
- Fill in provided rules here