0.0.0 • Published 1 year ago

@qiuxc/eslint-plugin v0.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@qiuxc/eslint-plugin

Installation

You'll first need to install ESLint:

pnpm i eslint -D

Next, install @qiuxc/eslint-plugin:

pnpm i @qiuxc/eslint-plugin -D

Usage

Add @qiuxc to the plugins section of your .eslintrc configuration file:

{
    "plugins": [
        "@qiuxc"
    ]
}

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

{
    "rules": {
        "@qiuxc/rule-name": 2
    }
}

Supported Rules

  • no-classname-spaces className 中间不能有多余的空格
  • no-fun-commnet react 组件内部 function 和 hook 要有注释
0.0.0

1 year ago