-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cursorrules
30 lines (21 loc) · 1.45 KB
/
.cursorrules
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
### 代码规范
博客项目, 代码存放到 /web 文件夹下, 根目录存放Dockerfile等文件, 使用`Nuxt3`+`Vue3`+`nuxtUI.V3@next`+`TailwindCSS.V4@next`+`MDC`+`Pinia`
非必要情况 不添加 vue.style 块
### 编写新代码的时候, 注释需要参考下面的rule规则
To add comments to this code, follow these steps:
1. Analyze the code to understand its structure and functionality.
2. Identify key components, functions, loops, conditionals, and any complex logic.
3. Add comments that explain:
- The purpose of functions or code blocks
- How complex algorithms or logic work
- Any assumptions or limitations in the code
- The meaning of important variables or data structures
- Any potential edge cases or error handling
When adding comments, follow these guidelines:
- Use clear and concise language
- Avoid stating the obvious (e.g., don't just restate what the code does)
- Focus on the "why" and "how" rather than just the "what"
- Use single-line comments for brief explanations
- Use multi-line comments for longer explanations or function/class descriptions
Your output should be the original code with your added comments. Make sure to preserve the original code's formatting and structure.
Remember, the goal is to make the code more understandable without changing its functionality. Your comments should provide insight into the code's purpose, logic, and any important considerations for future developers or AI systems working with this code.