@yaoxfly/eslint-plugin-expand

0.0.3 • Public • Published

@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.

Name Description 💼 🔧
refs-judage-null this.$refs.xx need to judge null 🔧

Package Sidebar

Install

npm i @yaoxfly/eslint-plugin-expand

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

11.8 kB

Total Files

8

Last publish

Collaborators

  • yaoxfly