mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 10:02:17 -05:00
client_v2 has matured, so enforce its checks like the old client: - Add ESLint (typescript-eslint + eslint-plugin-svelte) with a flat config; `lint` now runs prettier --check and eslint. - Add a "Client v2" group to lefthook pre-commit and ci: eslint, prettier, and svelte-check type checking (svelte-kit sync first). - Exclude generated paraglide output from prettier. Fix the linting warnings this surfaced: drop dead vars and an unused svelte-ignore, mark intentional reactive reads with `void`, remove a useless children snippet, and clean up useless string-literal mustaches. Disable svelte/no-navigation-without-resolve (base-path resolution is centralized in params.ts helpers, so the rule only false-positives and wrapping call sites would double-apply the base path). Keep svelte/prefer-svelte-reactivity on with per-line disables at the transient-local Set/Map sites. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>