TypeScript Guidelines
Strict Type Checking
We use strict TypeScript configuration. No any types without justification.
✓ Good
function greet(name: string): stringNaming Conventions
- • camelCase for variables, functions, methods
- • PascalCase for classes, interfaces, types, enums
- • UPPER_SNAKE_CASE for constants
- • kebab-case for file names
Linting
All code must pass ESLint checks before merging:
Terminal
npm run lint npm run lint:fix # Auto-fix issuesPre-commit Hooks
We use Husky to run checks before commits:
- TypeScript compilation
- ESLint checks
- Prettier formatting
- Unit tests