0.0.8 • Published 8 months ago

eslint-plugin-xlb-eslint v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

eslint-plugin-xlb-eslint

eslint plugin for xlb

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-xlb-eslint:

npm install eslint-plugin-xlb-eslint --save-dev

Usage

In your configuration file, import the plugin eslint-plugin-xlb-eslint and add xlb-eslint to the plugins key:

import xlb-eslint from "eslint-plugin-xlb-eslint";

export default [
    {
        plugins: {
            xlb-eslint
        }
    }
];

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

import xlb-eslint from "eslint-plugin-xlb-eslint";

export default [
    {
        plugins: {
            xlb-eslint
        },
        rules: {
            "xlb-eslint/rule-name": "warn"
        }
    }
];

Configurations

Name
recommed

Rules

⚠️ Configurations set to warn in.

NameDescription⚠️
no-excessive-chain-calls限制Object链式调用可选链深度badge-recommed
no-excessive-use-state限制组件中 useState 的使用次数badge-recommed
0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago