Enforce patterns with TypeScript beyond strict:true. Include noUncheckedIndexedAccess, erasableSyntaxOnly, ts-reset, and type-fest. Advanced type patterns and ESLint enforcement.
SKILL.md
Strict TypeScript
Critical rules
strict: true is the floor. Also enable noUncheckedIndexedAccess, exactOptionalPropertyTypes, verbatimModuleSyntax, erasableSyntaxOnly, and related unused/fallthrough flags.
Ban any / as / non-null assertions in source. Narrow with guards, discriminated unions, or Zod.
Install @total-typescript/ts-reset so JSON.parse is unknown.
Prefer satisfies and as const over loose object typing; avoid barrels and erasable-syntax violations (enum, param properties).
Enforce with @typescript-eslint/strict-type-checked at 'error'.