0.0.7 • Published 4 years ago
eslint-plugin-tcperf v0.0.7
eslint-plugin-tcperf
tcperf
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-tcperf
:
$ npm install eslint-plugin-tcperf --save-dev
Usage
Add tcperf
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"tcperf"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"tcperf/tc-perf-rule": "error"
}
}
提供的规则
- 性能规范 图片库/同步api/判端/轮播/pop