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 diff --git a/ui/src/App.vue b/ui/src/App.vue index 69b3bab..aefb128 100644 --- a/ui/src/App.vue +++ b/ui/src/App.vue @@ -51,7 +51,7 @@ export default class extends Vue { "days/visible_days", (visible_days: number) => { this.visible_days = visible_days; - } + }, ); } } diff --git a/ui/src/components/BulmaBreadcrumbs.vue b/ui/src/components/BulmaBreadcrumbs.vue index 95657c0..43a1b67 100644 --- a/ui/src/components/BulmaBreadcrumbs.vue +++ b/ui/src/components/BulmaBreadcrumbs.vue @@ -1,8 +1,12 @@ @@ -72,7 +77,7 @@ export default class extends Vue { \ No newline at end of file + diff --git a/ui/src/components/door_map/PreviewDoor.vue b/ui/src/components/door_map/PreviewDoor.vue index bb738b8..15d62bc 100644 --- a/ui/src/components/door_map/PreviewDoor.vue +++ b/ui/src/components/door_map/PreviewDoor.vue @@ -1,12 +1,27 @@