From c7d7169cd28b06facd9a1ef1bcb2683d348ab231 Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Tue, 4 Aug 2026 22:47:00 +0100 Subject: [PATCH] Disable svelte/prefer-svelte-reactivity (SvelteDate purge rationale) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rule pushes SvelteDate (svelte/reactivity), which this codebase deliberately removed in 55b2c8c because it caused real bugs. All Date usage is local wall-clock computation via parseWallClockDate helpers, not reactive $state Date mutations, and the rule has no options to allowlist Date — so disable it outright in the svelte block with a rationale comment. Restores a clean eslint gate for the pre-commit hook and CI. --- frontend/eslint.config.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js index 2591375..5799442 100644 --- a/frontend/eslint.config.js +++ b/frontend/eslint.config.js @@ -52,6 +52,13 @@ export default defineConfig( svelteConfig } }, - rules: {} + rules: { + // The prefer-svelte-reactivity rule pushes SvelteDate (svelte/reactivity), which this + // codebase deliberately removed (commit 55b2c8c, "SvelteDate→Date purge") because it + // caused real bugs. All Date usage here is local wall-clock computation (the + // parseWallClockDate helpers in src/lib/utils/timeSlots.ts), not reactive $state Date + // mutations, and the rule has no options to allowlist Date — so disable it outright. + 'svelte/prefer-svelte-reactivity': 'off' + } } );