From 4be3e389628114bd2de4dd49932ee3e793b9f181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Thu, 7 Sep 2023 01:17:00 +0000 Subject: [PATCH] add "prettier" formatter --- ui/.devcontainer/devcontainer.json | 1 + ui/.vscode/settings.json | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ui/.devcontainer/devcontainer.json b/ui/.devcontainer/devcontainer.json index 0c9e5d0..4112a8d 100644 --- a/ui/.devcontainer/devcontainer.json +++ b/ui/.devcontainer/devcontainer.json @@ -22,6 +22,7 @@ // Add the IDs of extensions you want installed when the container is created. "extensions": [ "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", "mhutchie.git-graph", "Syler.sass-indented", "Vue.volar" diff --git a/ui/.vscode/settings.json b/ui/.vscode/settings.json index 6c1800c..c6c940c 100644 --- a/ui/.vscode/settings.json +++ b/ui/.vscode/settings.json @@ -1,5 +1,14 @@ { "editor.formatOnSave": true, + "[vue]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, "editor.codeActionsOnSave": { "source.organizeImports": true }, @@ -7,5 +16,6 @@ "editor.tabSize": 2, "sass.disableAutoIndent": true, "sass.format.convert": false, - "sass.format.deleteWhitespace": true + "sass.format.deleteWhitespace": true, + "prettier.trailingComma": "all", } \ No newline at end of file