From cb457129baf7136b0861993c578ffbef7bd2b13c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Tue, 26 Sep 2023 23:55:16 -0400 Subject: [PATCH] chore(config): add editor and prettier config files --- .editorconfig | 5 +++++ .prettierignore | 5 +++++ .prettierrc.json | 8 ++++++++ .vscode/settings.json | 39 +++++++++++++++++++++++++-------------- 4 files changed, 43 insertions(+), 14 deletions(-) create mode 100644 .editorconfig create mode 100644 .prettierignore create mode 100644 .prettierrc.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..8c11ba9 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +[*] +tab_width = 2 +indent_style = tab +charset = utf-8 +max_line_length = 80 \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..816ce44 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,5 @@ +public/ +_migrate/comp/ +node_modules/ +.git/ +.nuxt/ \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..dc83e07 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "semi": true, + "useTabs": true, + "trailingComma": "all", + "arrowParens": "always", + "vueIndentScriptAndStyle": true, + "editorconfig": true +} diff --git a/.vscode/settings.json b/.vscode/settings.json index eac8190..a7485dc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,14 +1,25 @@ -{ - "nuxt.isNuxtApp": false, - "conventionalCommits.scopes": [ - "api", - "db/models", - "composables", - "pages", - "nuxt", - "server/middleware", - "components", - "deps", - "client-side" - ] -} \ No newline at end of file +{ + "nuxt.isNuxtApp": false, + "conventionalCommits.scopes": [ + "api", + "db/models", + "composables", + "pages", + "nuxt", + "server/middleware", + "components", + "deps", + "client-side", + "config" + ], + "editor.defaultFormatter": "esbenp.prettier-vscode", + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + }, + "[vue]": { + "editor.formatOnSave": true + }, + "vue.complete.casing.props": "kebab", + "vue.complete.casing.tags": "kebab" +}