ecomfe / eslint-plugin-san

Home Page:https://ecomfe.github.io/eslint-plugin-san

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

https://ecomfe.github.io/eslint-plugin-san

License:Other


Languages

Language:JavaScript 96.7%Language:TypeScript 3.3%