Skip to content

High performance self-hosted photo and video management solution.

chore: configure ESLint flat config and auto-fix on save in VSCode settings (#26679)

Min Idzelis480b7e8d65d8
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 54c018259b..76867e9b06 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -15,6 +15,7 @@
},
"[javascript]": {
"editor.codeActionsOnSave": {
+ "source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit",
"source.removeUnusedImports": "explicit"
},
@@ -34,6 +35,7 @@
},
"[svelte]": {
"editor.codeActionsOnSave": {
+ "source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit",
"source.removeUnusedImports": "explicit"
},
@@ -43,6 +45,7 @@
},
"[typescript]": {
"editor.codeActionsOnSave": {
+ "source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit",
"source.removeUnusedImports": "explicit"
},
@@ -51,14 +54,43 @@
"editor.tabSize": 2
},
"cSpell.words": ["immich"],
+ "css.lint.unknownAtRules": "ignore",
+ "editor.bracketPairColorization.enabled": true,
"editor.formatOnSave": true,
+ "editor.guides.bracketPairs": "active",
+ "eslint.useFlatConfig": true,
"eslint.validate": ["javascript", "typescript", "svelte"],
+ "eslint.workingDirectories": [
+ { "directory": "cli", "changeProcessCWD": true },
+ { "directory": "e2e", "changeProcessCWD": true },
+ { "directory": "server", "changeProcessCWD": true },
+ { "directory": "web", "changeProcessCWD": true }
+ ],
+ "files.watcherExclude": {
+ "**/.jj/**": true,
+ "**/.git/**": true,
+ "**/node_modules/**": true,
+ "**/build/**": true,
+ "**/dist/**": true,
+ "**/.svelte-kit/**": true
+ },
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.dart": "${capture}.g.dart,${capture}.gr.dart,${capture}.drift.dart",
"*.ts": "${capture}.spec.ts,${capture}.mock.ts",
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb, bun.lock, pnpm-workspace.yaml, .pnpmfile.cjs"
},
+ "search.exclude": {
+ "**/node_modules": true,
+ "**/build": true,
+ "**/dist": true,
+ "**/.svelte-kit": true,
+ "**/open-api/typescript-sdk/src": true
+ },
"svelte.enable-ts-plugin": true,
- "typescript.preferences.importModuleSpecifier": "non-relative"
+ "tailwindCSS.experimental.configFile": {
+ "web/src/app.css": "web/src/**"
+ },
+ "typescript.preferences.importModuleSpecifier": "non-relative",
+ "vitest.maximumConfigs": 10
}