472 B
472 B
Naming Conventions Standard
Files
- kebab-case for files and directories
- Examples:
user-auth.ts,api-response-format.md - Test files:
{name}.test.ts
Code
- camelCase for variables and functions
- PascalCase for classes and components
- UPPER_SNAKE_CASE for constants
- Prefix private properties with
_
Git
- Conventional commits:
type(scope): description - Types: feat, fix, refactor, docs, test, chore
- Examples:
feat(auth): add OAuth2 login