Principles
- Enable strict mode — no implicit any, strict null checks
- Prefer discriminated unions over type assertions
- Use
unknownoverany— narrow with type guards
Rules
See rules/ for detailed patterns.
TypeScript language patterns and type safety rules. Extends core-coding-standards with TypeScript-specific rules. Use when writing TypeScript code.
unknown over any — narrow with type guardsSee rules/ for detailed patterns.