From f4e0de0e4e699cc23085a52444c56b1280ce70b4 Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Wed, 29 Apr 2026 18:44:35 +0200 Subject: [PATCH] fix(app): set indent SwitchCase to 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WS-3 session 1b-iii Task 1. Codebase consistently uses SwitchCase: 1 (cases indented 2 spaces from switch keyword), but the eslint rule was running with default SwitchCase: 0 (cases at the same column as switch). This produced 24 unfixable indent items in useTimeSlotDropdown.ts (and 0 in other files because they didn't have switch statements with this pattern). Resolution: pass { SwitchCase: 1 } to the indent rule's options so its expectation matches the codebase reality. The autofix would reformat the codebase to match the default if SwitchCase: 0 were correct, but our codebase deliberately uses 1 — this is the zero-compromise path, no codebase rewrite needed. Lint baseline: 32 → 6 (Task 1 alone). Co-Authored-By: Claude Opus 4.7 --- apps/app/.eslintrc.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app/.eslintrc.cjs b/apps/app/.eslintrc.cjs index 369d97a1..88f2dc0d 100644 --- a/apps/app/.eslintrc.cjs +++ b/apps/app/.eslintrc.cjs @@ -63,7 +63,7 @@ module.exports = { // Vuexy reference (which sets this off) — Crewli's stricter posture. '@typescript-eslint/no-explicit-any': 'error', - 'indent': ['error', 2], + 'indent': ['error', 2, { SwitchCase: 1 }], 'comma-dangle': ['error', 'always-multiline'], 'object-curly-spacing': ['error', 'always'], 'camelcase': 'error',