typescript-style
Installation
SKILL.md
Google TypeScript Style Guide
Apply Google's TypeScript Style Guide conventions for consistent, maintainable TypeScript code.
Overview
This skill provides guidelines for writing TypeScript code following Google's internal style guide. It covers source file structure, language features, naming conventions, type annotations, and best practices specific to TypeScript development.
Source File Basics
File Encoding
Source files must be encoded in UTF-8.
Whitespace
- Use ASCII horizontal space (0x20) as the only whitespace character
- Use special escape sequences (
\',\",\\,\n,\r,\t, etc.) instead of numeric escapes - For non-printable characters, use hex/Unicode escapes with explanatory comments