0.0.3 • Published 3 years ago

eslint-plugin-rong v0.0.3

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

eslint-plugin-rong

eslint-rong 合集,目前包含todo-supervise

{
    "todo-supervise": "检测代码中的todo项 是否描述清楚,时间是否在允许范围内"
}

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-rong:

npm install eslint-plugin-rong --save-dev

Usage

Add rong to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "rong"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "rong/todo-supervise": 2
    }
}
or

{
    "rules": {
        "rong/todo-supervise": [2, true]
    }
}

{
    "rules": {
        "rong/todo-supervise": [2, true, { warnLine: 10}]
    }
}

Supported Rules

  • Fill in provided rules here