eslint-plugin-san

1.0.5 • Public • Published

eslint-plugin-san

Official ESLint plugin for San. Inspired by eslint-plugin-vue

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-san:

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

Usage

Add san to the plugins section of your .eslintrc configuration file.

{
    "extends": ["plugin:san/essential"],
    "parserOptions": {
        "parser": "babel-eslint"
    }
}

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

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

Supported on VS Code

On VS Code using ESlint extension to support. By default, Eslint extension is NOT support San, you shoud config eslint.validate option like this in settings.json:

{
    "eslint.validate": [
        "san"
    ]
}

Supported Rules

  • Fill in provided rules here

Package Sidebar

Install

npm i eslint-plugin-san

Weekly Downloads

131

Version

1.0.5

License

MIT

Unpacked Size

392 kB

Total Files

67

Last publish

Collaborators

  • jinzhan
  • ksky521
  • ecomfe-core