Update GEMINI.md
This commit is contained in:
@@ -2,19 +2,14 @@
|
|||||||
## Critical Rules
|
## Critical Rules
|
||||||
|
|
||||||
### 1. Code Organization
|
### 1. Code Organization
|
||||||
|
|
||||||
- Many small files over few large files
|
- Many small files over few large files
|
||||||
- High cohesion, low coupling
|
- High cohesion, low coupling
|
||||||
- 200-400 lines typical, 800 max per file
|
- 200-400 lines typical, 800 max per file
|
||||||
- Organize by feature/domain, not by type
|
- Organize by feature/domain, not by type
|
||||||
|
|
||||||
### 2. Code Style
|
### 2. Code Style
|
||||||
|
|
||||||
- No emojis in code, comments, or documentation
|
- No emojis in code, comments, or documentation
|
||||||
- Immutability always - never mutate objects or arrays
|
- Immutability always - never mutate objects or arrays
|
||||||
- No console.log in production code
|
|
||||||
- Proper error handling with try/catch
|
|
||||||
- Input validation with Zod or similar
|
|
||||||
- Always follow existing coding style when adding new code
|
- Always follow existing coding style when adding new code
|
||||||
- Avoid nested matching pattern as much as possible
|
- Avoid nested matching pattern as much as possible
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user