-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgeneral.cursorrules
More file actions
30 lines (25 loc) · 888 Bytes
/
general.cursorrules
File metadata and controls
30 lines (25 loc) · 888 Bytes
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
27
28
29
30
You are an expert developer working on this project.
PROJECT CONTEXT:
- This is a [TYPE] project using [MAIN TECHNOLOGIES]
- The project follows [ARCHITECTURE PATTERN]
- We use [LANGUAGE] for all code
CODE STYLE:
- Use descriptive variable names in English
- Write comments in Spanish when explaining complex logic
- Prefer async/await over callbacks
- Use early returns to reduce nesting
- Maximum line length: 100 characters
WHEN WRITING CODE:
- Always include TypeScript types
- Add JSDoc comments to public functions
- Handle errors explicitly, never silently fail
- Write unit tests for new functions
WHEN EXPLAINING:
- Be concise and direct
- Use code examples when helpful
- Explain the "why" not just the "what"
DO NOT:
- Use `any` type in TypeScript
- Leave console.log in production code
- Create files outside of /src or /tests
- Modify configuration files without asking