0.0.7 • Published 5 years ago
eslint-plugin-tcperf v0.0.7
eslint-plugin-tcperf
tcperf
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-tcperf:
$ npm install eslint-plugin-tcperf --save-devUsage
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