Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.12 KB

File metadata and controls

35 lines (30 loc) · 1.12 KB

Development AI Rules

Code Style

  • 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

Testing

  • 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

Package Management

  • Use pnpm as the primary package manager
  • Include exact versions for dependencies
  • Group dependencies logically in package.json
  • Minimize dependencies when possible

Documentation

  • 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

UI Development

  • 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