-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.cursorrules
More file actions
26 lines (20 loc) · 1.16 KB
/
.cursorrules
File metadata and controls
26 lines (20 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Cursor Rules for Live-Mutex Project
## Terminal Commands
- **DO NOT** pipe command output to `head` or `tail` in terminal commands
- Show full command output instead of truncating it
- If output is too long, let the user see it all or use other methods to filter (like grep with specific patterns)
- This ensures we see complete information and don't miss important details
- When running tests or long-running commands, let them run to completion or show full output
- Do not truncate output unless explicitly requested by the user
## Code Style
- Prefer explicit types over `any` or `unknown`
- Use proper TypeScript types for all function parameters and return values
- Use proper TypeScript types instead of type assertions when feasible
- Maintain type safety throughout the codebase
- Fix linter errors immediately after making changes
## Testing
- **ALWAYS use `.ts` extension for test scripts** - Never use `.js` for new test files
- Convert existing `.js` test files to `.ts` when modifying them
- Tests should run serially with independent brokers on unique ports
- Each test should be isolated and not depend on other tests
- Test timeouts should be handled gracefully