SurfSense/.cursorrules

29 lines
14 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Project Rules
## Code Style
- Use TypeScript strict mode
- Prefer functional components with hooks
- Use Tailwind CSS for styling
- Follow ESLint and Prettier configurations
## Architecture
- Keep components small and focused
- Use custom hooks for shared logic
- Implement error boundaries
- Follow the repository pattern for data access
## Testing
- Write unit tests for all utility functions
- Use React Testing Library for component tests
- Maintain >80% code coverage
## Git
- Write descriptive commit messages
- Use conventional commits format
- Create small, focused PRs
## Dependencies
- Prefer well-maintained packages with >1000 weekly downloads
- Check for security advisories before adding dependencies
- Keep dependencies up to date