2.0.0 • Published 5 years ago
eslint-plugin-no-record-time v2.0.0
eslint-plugin-no-record-time
禁止定时器空运行
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-no-record-time:
$ npm install eslint-plugin-no-record-time --save-devUsage
Add no-record-time to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"no-record-time"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"no-record-time/no-record-time": 2
}
}Supported Rules
- Fill in provided rules here