chore(config): add editor and prettier config files

This commit is contained in:
parent 8ec7a09193
commit cb457129ba
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C
4 changed files with 43 additions and 14 deletions

5
.editorconfig Normal file

@ -0,0 +1,5 @@
[*]
tab_width = 2
indent_style = tab
charset = utf-8
max_line_length = 80

5
.prettierignore Normal file

@ -0,0 +1,5 @@
public/
_migrate/comp/
node_modules/
.git/
.nuxt/

8
.prettierrc.json Normal file

@ -0,0 +1,8 @@
{
"semi": true,
"useTabs": true,
"trailingComma": "all",
"arrowParens": "always",
"vueIndentScriptAndStyle": true,
"editorconfig": true
}

39
.vscode/settings.json vendored

@ -1,14 +1,25 @@
{ {
"nuxt.isNuxtApp": false, "nuxt.isNuxtApp": false,
"conventionalCommits.scopes": [ "conventionalCommits.scopes": [
"api", "api",
"db/models", "db/models",
"composables", "composables",
"pages", "pages",
"nuxt", "nuxt",
"server/middleware", "server/middleware",
"components", "components",
"deps", "deps",
"client-side" "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"
}