clean vscode config

This commit is contained in:
Kim, Jimin 2025-03-17 05:54:06 +09:00
parent 6865be8c8f
commit 5ccd84cb93
Signed by: pomp
GPG key ID: D3932F82A0667A3B
2 changed files with 61 additions and 94 deletions

View file

@ -10,7 +10,6 @@
"svelte.svelte-vscode", "svelte.svelte-vscode",
"redhat.vscode-xml", "redhat.vscode-xml",
"github.vscode-github-actions", "github.vscode-github-actions",
"foxundermoon.shell-format",
"editorconfig.editorconfig", "editorconfig.editorconfig",
"redhat.vscode-yaml", "redhat.vscode-yaml",
"jnoortheen.nix-ide", "jnoortheen.nix-ide",

88
.vscode/settings.json vendored
View file

@ -1,86 +1,56 @@
{ {
"editor.defaultFormatter": "esbenp.prettier-vscode", // Spelling
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.detectIndentation": false,
"editor.insertSpaces": false,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"cSpell.words": [ "cSpell.words": [
"bspwm",
"cairographics",
"callout", "callout",
"callouts", "callouts",
"classnet",
"commitlint", "commitlint",
"createreactapp",
"deno", "deno",
"devenv", "devenv",
"direnv", "direnv",
"dompurify", "dompurify",
"elasticlunr", "elasticlunr",
"Exyle",
"exyleio",
"fnref", "fnref",
"Fontawesome", "Fontawesome",
"Fonticons", "Fonticons",
"fontsource", "fontsource",
"fortawesome", "fortawesome",
"Freedesktop",
"GDSC",
"githubactions",
"githubpages",
"gnubash",
"godotengine",
"heroicon",
"hongik",
"hoofd",
"inqling", "inqling",
"Jimin",
"katex", "katex",
"kunukn", "kunukn",
"Librewolf",
"microflash", "microflash",
"nixd",
"nixfmt",
"nixpkgs", "nixpkgs",
"nodedotjs",
"nojs", "nojs",
"noopener", "noopener",
"noto", "noto",
"planetscale", "pkgs",
"pnpm", "pnpm",
"pocketbase",
"polybar",
"Pomky",
"pompup",
"pompy", "pompy",
"pompydev", "pompydev",
"precompress",
"rainmeter",
"rehype", "rehype",
"statcounter",
"supersub", "supersub",
"sxhkd",
"tailwindcss", "tailwindcss",
"tauri",
"texmath",
"tinycolor",
"tsup", "tsup",
"Turborepo", "Turborepo",
"umami", "umami",
"ungoogled",
"unixporn",
"wbtimeline",
"webassembly",
"wouter",
"YYYYMMDD", "YYYYMMDD",
"zustand" "zustand"
], ],
// Nix
"nix.formatterPath": "nixfmt", "nix.formatterPath": "nixfmt",
"nix.enableLanguageServer": true, "nix.enableLanguageServer": true,
"nix.serverPath": "nixd", "nix.serverPath": "nixd",
"[nix]": {
"editor.defaultFormatter": "jnoortheen.nix-ide"
},
// Formatting & Linting
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"eslint.workingDirectories": [{ "mode": "auto" }], "eslint.workingDirectories": [{ "mode": "auto" }],
"eslint.validate": [ "eslint.validate": [
"javascript", "javascript",
@ -90,9 +60,22 @@
"svelte" "svelte"
], ],
// TS/JS
"typescript.tsdk": "node_modules/typescript/lib", "typescript.tsdk": "node_modules/typescript/lib",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// prevent tailwind-related warnings // Tailwind
"css.lint.unknownAtRules": "ignore", "css.lint.unknownAtRules": "ignore",
"less.lint.unknownAtRules": "ignore", "less.lint.unknownAtRules": "ignore",
"scss.lint.unknownAtRules": "ignore", "scss.lint.unknownAtRules": "ignore",
@ -100,7 +83,7 @@
// https://github.com/tailwindlabs/tailwindcss-intellisense#tailwindcssclassattributes // https://github.com/tailwindlabs/tailwindcss-intellisense#tailwindcssclassattributes
"tailwindCSS.classAttributes": ["class", "className", ".*Styles*"], "tailwindCSS.classAttributes": ["class", "className", ".*Styles*"],
// file format settings // misc. formatter settings
"[json]": { "[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
}, },
@ -110,28 +93,13 @@
"[svg]": { "[svg]": {
"editor.defaultFormatter": "jock.svg" "editor.defaultFormatter": "jock.svg"
}, },
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[xml]": { "[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml" "editor.defaultFormatter": "redhat.vscode-xml"
}, },
"[svelte]": { "[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode" "editor.defaultFormatter": "svelte.svelte-vscode"
}, },
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[markdown]": { "[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[nix]": {
"editor.defaultFormatter": "jnoortheen.nix-ide"
} }
} }