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