eslint-plugin-settimeout-no-number
v0.0.4
Published
eslint插件 setTimeout禁止使用魔法数字
Downloads
4
Maintainers
Readme
eslint-plugin-settimeout-no-number
测试用的eslint插件
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-settimeout-no-number
:
$ npm install eslint-plugin-settimeout-no-number --save-dev
Usage
Add settimeout-no-number
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"settimeout-no-number"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"settimeout-no-number/settimeout-no-number": 2
}
}
Supported Rules
- Fill in provided rules here