0.0.2 • Published 3 years ago

@poyoho/eslint-plugin-config v0.0.2

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

eslint-plugin-config

eslint plugin for myself

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @poyoho/eslint-plugin-config:

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

If use in Vue, install vue-eslint-parser

$ npm install vue-eslint-parser --save-dev

If use in TS, install @typescript-eslint/parser

$ npm install @typescript-eslint/parser --save-dev

Usage

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

{
    "plugins": [
        "@poyoho/config"
    ]
}

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

{
    "rules": {
        "@poyoho/config/rule-name": 2
    }
}

Or you can use the recommended configuration of rules:

{
  "plugins": [
    "@poyoho/config"
  ],
  "extends": [
    "plugin:@poyoho/config/js",
    "plugin:@poyoho/config/ts",
    "plugin:@poyoho/config/vue",
    "plugin:@poyoho/config/vuets",
  ]
}

Or you can use the recommended statistics configuration:

{
  "plugins": [
    "@poyoho/config"
  ],
  "extends": [
    "plugin:@poyoho/config/stat",
  ]
}

Supported Rules

Supported Stats

feature

  • write eslint formatter to export eslint result share to sornaquba