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.
npx skillmds@latest add majiayu000/lang-typescript-2 unknown over any — narrow with type guardsSee rules/ for detailed patterns.
majiayu000/claude-skill-registry-data/tree/main/data/lang-typescript commit 189610ab83