From 271f3c2abcc6d3c282ed73f98313f577eb5a367c Mon Sep 17 00:00:00 2001 From: adroslice Date: Sun, 22 Oct 2023 22:07:15 +0200 Subject: [PATCH] Added Launch Profile - Also package.json formatting --- .vscode/launch.json | 16 ++++++++++++++++ .vscode/tasks.json | 13 +++++++++++++ client/package.json | 29 ++++++++--------------------- 3 files changed, 37 insertions(+), 21 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..81ca679 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "firefox", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:5173", + "webRoot": "${workspaceFolder}", + "reAttach": true + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..f04769e --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,13 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "dev", + "path": "client", + "problemMatcher": [], + "label": "npm: dev - client", + "detail": "vite" + } + ] +} \ No newline at end of file diff --git a/client/package.json b/client/package.json index 53c536a..64bdedc 100644 --- a/client/package.json +++ b/client/package.json @@ -62,24 +62,14 @@ "files": "**/*.+(ts|vue)" } ], - "extends": [ - "plugin:vue/vue3-strongly-recommended" - ], - "plugins": [ - "eslint-plugin-vue" - ], + "extends": ["plugin:vue/vue3-strongly-recommended"], + "plugins": ["eslint-plugin-vue"], "rules": { - "semi": [ - "error", - "always" - ], - "comma-dangle": [ - "error", - "always-multiline" - ], - "no-trailing-spaces": [ - "error" - ], + "semi": ["error", "always"], + "comma-dangle": ["error", "always-multiline"], + "no-trailing-spaces": "error", + "quotes": ["warn", "single"], + "prefer-template": "warn", "vue/multi-word-component-names": "off", "vue/html-closing-bracket-spacing": "off", "vue/html-self-closing": "off", @@ -87,10 +77,7 @@ "vue/max-attributes-per-line": "off", "vue/html-closing-bracket-newline": "off", "vue/singleline-html-element-content-newline": "off", - "indent": [ - "error", - 2 - ] + "indent": ["error", 2] } } } \ No newline at end of file