# eslint-plugin-san

Official ESLint plugin for San

# Installation

You'll first need to install ESLint (opens new window):

$ 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 (opens new window) 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
Last Updated: 10/26/2021, 7:23:11 AM