0.1.2 • Published 3 years ago

eslint-plugin-fsp v0.1.2

Weekly downloads
48
License
ISC
Repository
-
Last release
3 years ago

eslint-plugin-fsp

操作符、金额相关字段校验

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-fsp:

$ npm install eslint-plugin-fsp --save-dev

Usage

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