ts-style-review
Installation
SKILL.md
TypeScript Style Guide Review
When reviewing TypeScript code, check against these sections. For full rules and examples, see google-ts-styleguide.md.
1. Source File Structure
- File order: copyright,
@fileoverview, imports, implementation - Use named exports only — no default exports
- Use ES6 modules — no
namespace, norequire() - Prefer namespace imports for large APIs, named imports for frequently used symbols
- No mutable exports (
export let) — use getter functions instead - See google-ts-styleguide.md § 3. Source file structure
2. Variables & Literals
constby default,letwhen reassigned, nevervar- One variable per declaration
- Single quotes for strings, template literals for concatenation
- No
Array()orObject()constructors - See google-ts-styleguide.md § 4. Language features