Skip to content

Commit

Permalink
docs: update VS Code config hint
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 20, 2023
1 parent f0f499e commit 1fa1703
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -10,6 +10,8 @@
- Reasonable defaults, best practices, only one-line of config
- **Style principle**: Minimal for reading, stable for diff

> Configs uses [ESLint Stylistic](https://github.com/eslint-stylistic/eslint-stylistic)
## Usage

### Install
Expand Down Expand Up @@ -51,11 +53,21 @@ Add the following settings to your `settings.json`:
{
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": false
},

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{
"rule": "@stylistic/*",
"severity": "off"
}
],

// The following is optional.
// It's better to put under project setting `.vscode/settings.json`
// to avoid conflicts with working with different eslint configs
Expand Down

0 comments on commit 1fa1703

Please sign in to comment.