0.0.5 • Published 2 years ago

@supaur-works/eslint-plugin v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@supaur-works/eslint-plugin

数跑定制eslint验证, 以及集合规则包

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @supaur-works/eslint-plugin:

npm install @supaur-works/eslint-plugin --save-dev

Usage

Add supaur to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "@supaur-works"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "@supaur-works/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here
规则描述
plugin:@supaur-works/supaur定制规则
plugin:@supaur-works/vuevue常规规则
plugin:@supaur-works/tsts常规规则

项目解析器采用 vue-eslint-parser + @typescript-eslint/parser 组合解析用作解析

Supported Rules

  • Fill in provided rules here
规则描述
valid-templete-computed模板复杂计算,建议使用computed
valid-func-name方法名需要带指定动词开头
valid-ref不要通过ref与parent调用实例的方法和属性
valid-router请使用/xxx-xxx/xxx-xxx格式

目前以实现功能为主, 并未分析上下文语法, 后续会逐渐完善, 有问题可提出, 会及时完善