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-plugin-san
Installation
You’ll first need to install ESLint:
Next, install
eslint-plugin-san:Flat Config Usage
eslint.config.mjs
Legacy Usage
Add
santo the plugins section of your.eslintrcconfiguration file.Then configure the rules you want to use under the rules section.
Supported on
VS CodeOn VS Code using ESlint extension to support. By default, Eslint extension is NOT support San, you shoud config
eslint.validateoption like this insettings.json:Supported Rules