- For TypeScript: Use camelCase for variables, functions, properties, and method names.
- Enclose all strings in single quotes.
- Require semicolons to terminate statements.
- Declare variables with const by default; use let only for reassignment.
- Use strict equality (===) and strict inequality (!==).
- For TypeScript: Indent code blocks with exactly 2 spaces for consistent readability across teams.
- Limit lines to a maximum of 100 characters to facilitate code reviews and horizontal scrolling avoidance.
- Group and order import statements logically at file top (builtins, externals, internals) for clear dependency visualization.
- Choose descriptive, meaningful names for variables/functions to enhance self-documenting code and reduce comments need.
- Favor object destructuring in function parameters for cleaner, more readable signatures.