- Use TypeScript for all JavaScript projects
- Follow the project's established code style
- Use Biome for formatting and linting
- Prefer functional programming patterns when appropriate
- Use meaningful variable and function names
- Write tests using Vitest
- Follow Test-Driven Development principles
- Aim for high test coverage on business logic
- Include both unit and integration tests
- Mock external dependencies appropriately
- Use pnpm as the primary package manager
- Include exact versions for dependencies
- Group dependencies logically in package.json
- Minimize dependencies when possible
- Document all public APIs
- Include JSDoc comments for functions and classes
- Maintain a comprehensive README.md
- Document any non-obvious design decisions
- Keep documentation up-to-date with code changes
- Use Ladle for component development and testing
- Follow accessibility best practices
- Ensure responsive design for all UI components
- Maintain a consistent design system
- Test across multiple browsers and devices