# Copilot Workspace Rules

Apply these rules to all code suggestions in this workspace.

## Code Style

- Use TypeScript strict mode — no implicit `any`
- Prefer `const` over `let`; never use `var`
- Named exports over default exports for utilities
- Async functions over `.then()` chains

## Naming

- Components: PascalCase
- Functions/variables: camelCase
- Constants: SCREAMING_SNAKE_CASE
- Files: kebab-case

## Testing

- Every new function needs at least one unit test
- Test file lives next to the source file: `foo.test.ts`
- Use `describe` + `it` blocks (not `test`)

## Commit Messages

- Format: `type(scope): short description`
- Types: feat, fix, refactor, test, docs, chore
- Imperative mood: "add" not "added"

## Do NOT

- Add comments that restate what the code does
- Use `console.log` in committed code
- Leave TODO comments without a ticket reference
