--- id: TASK-42 title: Scope v2 Referenzdateien aus dem Typecheck status: In Progress assignee: [] created_date: '2026-06-06 22:16' updated_date: '2026-06-06 22:18' labels: [] dependencies: [] priority: high ordinal: 44000 --- ## Description Keep v2_elemente as PRD/reference snippets while ensuring the production TypeScript check is not broken by those exploratory files. ## Acceptance Criteria - [x] #1 pnpm exec tsc --noEmit exits 0 - [x] #2 pnpm lint remains green - [x] #3 pnpm test remains green - [x] #4 v2_elemente content remains available as planning/reference material ## Implementation Plan 1. Reproduce tsc failures from v2_elemente snippets 2. Apply minimal production TypeScript scope fix 3. Re-run tsc, lint, tests, diff check 4. Leave task In Progress until Matthias confirms Done ## Implementation Notes Reproduced pnpm exec tsc --noEmit failure: production tsconfig includes v2_elemente reference snippets via **/*.ts, while eslint already scopes them out as non-runtime material. Applied minimal scope fix: tsconfig.json now excludes v2_elemente/** from the production TypeScript program, matching the existing ESLint ignore for reference snippets. Verification passed: pnpm exec tsc --noEmit (exit 0), pnpm lint (exit 0 with two existing generated-file warnings), pnpm test (exit 0, 363 tests passed), git diff --check (exit 0). v2_elemente contents were not edited.