Upgrade all Javascript dependencies

Changes which were needed after the upgrade:

- Replace vite-plugin-virtual (vite 8 incompatible) with vite's
  built-in `define` for the buildTimeConfig injection

- tsconfig: drop deprecated `baseUrl` (TS 5+ resolves `paths`
  relative to tsconfig)

- Vitest 4: import `defineConfig` from `vitest/config` so `test`
  is valid in vite configs

- Zod 4: rename `.errors` to `.issues`, make `ZodSchema` a
  type-only import, drop the removed `SafeParseReturnType`

- Tighten/loosen generic casts in localStore to match stricter
  zod 4 inference

- ESLint 9 `no-useless-assignment`: remove redundant initializers
  and dead reassignments; disable the rule where Svelte's reactive
  blocks confuse the analyser

- Svelte/eslint `prefer-svelte-reactivity`: disable for legacy
  Svelte usages of URL / Set

- Misc naming-convention and prefer-const fixes
This commit is contained in:
Rūdolfs Ošiņš
2026-04-22 17:48:45 +02:00
parent 9ca1d7973e
commit b2f74ebd15
24 changed files with 1958 additions and 2110 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
type Rect = { x: number; y: number; opacity: number };
let rects: Rect[] = $state([]);
const heightWithPadding = viewBoxHeight + 16;
const heightWithPadding = $derived.by(() => viewBoxHeight + 16);
let cellSize: number = $state(0);
let rows: number = 0;
+1
View File
@@ -114,6 +114,7 @@
// If the anchor is an oid embed
if (anchorHref && isCommit(anchorHref)) {
// eslint-disable-next-line svelte/prefer-svelte-reactivity
const url = new URL(rawPath);
// deprecated with httpd 0.18.1
// For older httpd versions we still pass the mime type.
+1
View File
@@ -17,6 +17,7 @@
import { onDestroy } from "svelte";
let observer: IntersectionObserver | undefined = undefined;
// eslint-disable-next-line svelte/prefer-svelte-reactivity
let filesVisibility = new Set<string>();
if ("IntersectionObserver" in window) {