0.0.3 โ€ข Published 2 years ago

@yaoxfly/eslint-plugin-expand v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@yaoxfly/eslint-plugin-expand

Custom some useful rulesใ€‚

Installation

You'll first need to install ESLint:

npm install eslint --save-dev

Next, install @yaoxfly/eslint-plugin-expand:

npm install @yaoxfly/eslint-plugin-expand --save-dev

Usage

Add @yaoxfly/eslint-plugin-expand to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin-prefix:

{
    plugins: [
        "@yaoxfly/expand"
    ]
}

You can inherit all the rules

  extends: [
    'plugin:@yaoxfly/expand/recommended'
  ],

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

{
    rules: {
        "@yaoxfly/expand/rule-name": 2 //0:close  1:warn 2 error
    } 
}

Rules

๐Ÿ’ผ Configurations enabled in.\ โœ… Set in the recommended configuration.\ ๐Ÿ”ง Automatically fixable by the --fix CLI option.

NameDescription๐Ÿ’ผ๐Ÿ”ง
refs-judage-nullthis.$refs.xx need to judge nullโœ…๐Ÿ”ง