docs: VS Code config example (#215)

This commit is contained in:
Marshall Thompson 2023-07-09 19:02:20 -06:00 committed by GitHub
parent 2ed8536b85
commit 1b25322bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,24 +54,24 @@ Add the following settings to your `settings.json`:
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.eslint": true, "source.fixAll.eslint": true,
"source.organizeImports": false, "source.organizeImports": false,
},
// The following is optional.
// It's better to put under project setting `.vscode/settings.json` // The following is optional.
// to avoid conflicts with working with different eslint configs // It's better to put under project setting `.vscode/settings.json`
// that does not support all formats. // to avoid conflicts with working with different eslint configs
"eslint.validate": [ // that does not support all formats.
"javascript", "eslint.validate": [
"javascriptreact", "javascript",
"typescript", "javascriptreact",
"typescriptreact", "typescript",
"vue", "typescriptreact",
"html", "vue",
"markdown", "html",
"json", "markdown",
"jsonc", "json",
"yaml" "jsonc",
] "yaml"
} ]
} }
``` ```