# Code Style Guidelines — JavaScript / TypeScript

- **Formatter:** Prettier (auto-format on save)
- **Linter:** ESLint with team config
- **Indentation:** 2 spaces (no tabs)
- **Line Length:** Max 100 characters per line
- **Quotes:** Single quotes for JS/TS; double quotes in JSX attributes
- **Semicolons:** Required at end of statements
- **Trailing comma:** Required in multi-line arrays/objects/params
- **Complexity:** Functions should do one thing only. Max ~40 lines; extract if longer
- **Comments:** Comment the "why", not the "what". JSDoc for exported functions
- **TypeScript:** No `any`. Use proper types, generics, or `unknown`
