add "prettier" formatter

This commit is contained in:
Jörn-Michael Miehe 2023-09-07 01:17:00 +00:00
parent 84be0cbc71
commit 4be3e38962
2 changed files with 12 additions and 1 deletions

View file

@ -22,6 +22,7 @@
// Add the IDs of extensions you want installed when the container is created. // Add the IDs of extensions you want installed when the container is created.
"extensions": [ "extensions": [
"dbaeumer.vscode-eslint", "dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"mhutchie.git-graph", "mhutchie.git-graph",
"Syler.sass-indented", "Syler.sass-indented",
"Vue.volar" "Vue.volar"

View file

@ -1,5 +1,14 @@
{ {
"editor.formatOnSave": true, "editor.formatOnSave": true,
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.organizeImports": true "source.organizeImports": true
}, },
@ -7,5 +16,6 @@
"editor.tabSize": 2, "editor.tabSize": 2,
"sass.disableAutoIndent": true, "sass.disableAutoIndent": true,
"sass.format.convert": false, "sass.format.convert": false,
"sass.format.deleteWhitespace": true "sass.format.deleteWhitespace": true,
"prettier.trailingComma": "all",
} }