typescript
Installation
SKILL.md
Google TypeScript Style Guide
Official Google TypeScript coding standards for consistent, maintainable code.
Golden Rules
- Use TypeScript strictly — enable
strictmode intsconfig.json - Prefer interfaces over type aliases for object shapes
- Never use
any— useunknownwhen type is truly unknown - Use
constby default,letwhen reassignment needed, nevervar - Avoid non-null assertions (
!) — handle nullability explicitly - Use explicit return types on public functions and methods
- Prefer
readonlyfor properties that should not change