eslint-plugin-supaur
v0.0.9
Published
数跑定制eslint验证, 以及集合规则包
Downloads
3
Maintainers
Readme
eslint-plugin-supaur
数跑定制eslint验证, 以及集合规则包
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-supaur
:
npm install eslint-plugin-supaur --save-dev
Usage
Add supaur
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"supaur"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"supaur/rule-name": 2
}
}
Supported Rules
- Fill in provided rules here
| 规则 | 描述 | | ---- | ---- | | plugin:supaur/supaur | 定制规则 | | plugin:supaur/vue | vue常规规则 | | plugin:supaur/ts | ts常规规则 |
[!CAUTION]
项目解析器采用 vue-eslint-parser + @typescript-eslint/parser 组合解析用作解析
[!CAUTION]
Supported Rules
- Fill in provided rules here
| 规则 | 描述 | | ---- | ---- | | valid-templete-computed | 模板复杂计算,建议使用computed | | valid-func-name | 方法名需要带指定动词开头 | | valid-ref | 不要通过ref与parent调用实例的方法和属性 | | valid-router | 请使用/xxx-xxx/xxx-xxx格式 |
[!CAUTION] 目前以实现功能为主, 并未分析上下文语法, 后续会逐渐完善, 有问题可提出, 会及时完善