Overview
tsconfig.json contains an exclude array with 99 entries, covering API auth routes, dashboard components, hooks, forms, and certificate handling. TypeScript type checking is entirely skipped for these paths. Bugs that would be caught at compile time — wrong types, missing properties, null dereferences — silently compile and reach production.
Specifications
Features:
- All source files under
src/ are type-checked by tsc
- The
exclude list contains only generated or third-party code
Tasks:
- Remove all
src/-path entries from the exclude array in tsconfig.json
- Run
tsc --noEmit and fix all newly surfaced type errors
- Enable
strict: true if not already set to prevent regression
- Add
type-check to the CI quality-checks job with --max-warnings 0
Impacted Files:
tsconfig.json
- All previously excluded source files
Acceptance Criteria
tsc --noEmit passes with zero errors across the entire src/ directory
- The
exclude list contains only node_modules, .next, and test files if applicable
- CI enforces type-check on every PR
Overview
tsconfig.jsoncontains anexcludearray with 99 entries, covering API auth routes, dashboard components, hooks, forms, and certificate handling. TypeScript type checking is entirely skipped for these paths. Bugs that would be caught at compile time — wrong types, missing properties, null dereferences — silently compile and reach production.Specifications
Features:
src/are type-checked bytscexcludelist contains only generated or third-party codeTasks:
src/-path entries from theexcludearray intsconfig.jsontsc --noEmitand fix all newly surfaced type errorsstrict: trueif not already set to prevent regressiontype-checkto the CI quality-checks job with--max-warnings 0Impacted Files:
tsconfig.jsonAcceptance Criteria
tsc --noEmitpasses with zero errors across the entiresrc/directoryexcludelist contains onlynode_modules,.next, and test files if applicable