# My Copilot Preferences

## Coding Style
- I prefer TypeScript over JavaScript for all new projects
- Use `const` and `let` instead of `var`
- Always add explicit return types to functions
- Prefer arrow functions for callbacks and anonymous functions
- Use 2-space indentation

## Code Structure
- Organize imports: external libraries first, then internal modules
- Group related functions into clearly named modules
- Keep functions small and focused on a single responsibility
- Always handle errors explicitly — never swallow exceptions silently

## Testing Preferences
- Use Jest as the test framework
- Write tests in the `__tests__` directory alongside source files
- Follow the AAA pattern: Arrange, Act, Assert
- Aim for 80%+ code coverage on new features

## Documentation
- Add JSDoc comments to all public functions and classes
- Include examples in documentation for complex APIs
- Keep README files up to date when adding new features

## Communication Style
- Explain the "why" behind suggestions, not just the "what"
- When reviewing code, provide constructive feedback with alternatives
- Keep responses concise — use bullet points for lists of steps
- If multiple approaches exist, briefly compare the trade-offs
