Skip to content

[Tech-debt] tsconfig.json excludes 99 source files from type-checking — critical paths unchecked #746

Description

@RUKAYAT-CODER

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programtech-debtTechnical debt cleanup

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions