diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 18e7faf..d1763c1 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -10,6 +10,7 @@ "svelte.svelte-vscode", "redhat.vscode-xml", "github.vscode-github-actions", - "4ops.terraform" + "4ops.terraform", + "foxundermoon.shell-format" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index a8f4816..3f47d5c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -74,11 +74,12 @@ "YYYYMMDD", "zustand" ], + "eslint.workingDirectories": [{ "mode": "auto" }], "eslint.validate": ["javascript", "typescript", "svelte"], - "[svg]": { - "editor.defaultFormatter": "jock.svg" - }, + + "typescript.tsdk": "node_modules/typescript/lib", + // prevent tailwind-related warnings "css.lint.unknownAtRules": "ignore", "less.lint.unknownAtRules": "ignore", @@ -86,11 +87,33 @@ "color-highlight.markerType": "outline", // https://github.com/tailwindlabs/tailwindcss-intellisense#tailwindcssclassattributes "tailwindCSS.classAttributes": ["class", "className", ".*Styles*"], + + // file format settings + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[svg]": { + "editor.defaultFormatter": "jock.svg" + }, "[dotenv]": { "editor.defaultFormatter": "foxundermoon.shell-format" }, "[xml]": { "editor.defaultFormatter": "redhat.vscode-xml" }, - "typescript.tsdk": "node_modules/typescript/lib" + "[svelte]": { + "editor.defaultFormatter": "svelte.svelte-vscode" + }, + "[javascript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[shellscript]": { + "editor.defaultFormatter": "foxundermoon.shell-format" + }, + "[ignore]": { + "editor.defaultFormatter": "foxundermoon.shell-format" + } }