1+ ---
2+ description: Project-Wide Rules for the Hypergraph monorepo and its packages
3+ globs:
4+ alwaysApply: true
5+ ---
6+
7+ # Hypergraph Project-Wide Rules
8+
9+ ## Monorepo Structure
10+ - Use pnpm workspaces for package management
11+ - Follow consistent package naming conventions
12+ - Use workspace dependencies where appropriate
13+ - Maintain proper package.json structure
14+ - Use consistent versioning across packages
15+
16+ ## TypeScript Configuration
17+ - Use strict TypeScript configuration
18+ - Implement proper type definitions
19+ - Use consistent import/export patterns
20+ - Follow TypeScript best practices
21+ - Use proper module resolution
22+
23+ ## Code Style
24+ - Use Biome for linting and formatting
25+ - Follow consistent naming conventions
26+ - Use proper indentation and spacing
27+ - Implement proper code organization
28+ - Follow established file structure patterns
29+
30+ ## Testing
31+ - Use Vitest for testing framework
32+ - Write comprehensive unit tests
33+ - Test both success and error scenarios
34+ - Use proper mocking strategies
35+ - Maintain good test coverage
36+
37+ ## Documentation
38+ - Write clear, comprehensive documentation
39+ - Use proper JSDoc comments
40+ - Maintain up-to-date README files
41+ - Document API interfaces
42+ - Use consistent documentation patterns
43+
44+ ## Git Workflow
45+ - Use conventional commit messages
46+ - Implement proper branching strategy
47+ - Use meaningful commit descriptions
48+ - Follow established PR review process
49+ - Maintain clean git history
50+
51+ ## Security
52+ - Use secure dependencies
53+ - Implement proper authentication
54+ - Follow security best practices
55+ - Use proper encryption where needed
56+ - Maintain secure coding practices
57+
58+ ## Performance
59+ - Optimize bundle sizes
60+ - Implement proper caching strategies
61+ - Use efficient algorithms
62+ - Monitor performance metrics
63+ - Follow performance best practices
0 commit comments