Code Style
Table of Contents
TypeScript Style
General Principles
Type Annotations
Interfaces vs Types
Optional Properties
Enums vs Union Types
Async/Await
Arrow Functions
Destructuring
Template Literals
Naming Conventions
General Rules
Files
Variables and Functions
Classes and Interfaces
Constants
Boolean Variables
Function Names
File Organization
Project Structure
File Structure
Imports
Exports
Comments and Documentation
JSDoc Comments
Inline Comments
TODO Comments
Section Comments
Error Handling
Try-Catch Blocks
Custom Errors
Testing Style
Test Structure
Test Naming
Assertions
Git Practices
Commit Messages
Commit Size
Branch Names
Linting and Formatting
ESLint Configuration
Running Linters
Pre-commit Hooks
Review Checklist
Additional Resources
Last updated