0.1.0 • Published 3 years ago

eslint-plugin-rcrai_rainbow v0.1.0

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

eslint-plugin-rcrai_rainbow

for rcrai-rainbow

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-rcrai_rainbow:

$ npm install eslint-plugin-rcrai_rainbow --save-dev

Usage

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

{
    "plugins": [
        "rcrai_rainbow"
    ]
}

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

{
    "rules": {
        "rcrai_rainbow/rule-name": 2
    }
}

Supported Rules

components

针对 ant-design 的 Button、 Table、 Pagination、 Modal 和 @ant-design/icons 组件进行校验,并提示 rcrai-rainbow 中对应的组件

style-max

限制行内css样式的个数, 默认超过 3 个时提示,可配置