-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cursorrules
More file actions
145 lines (129 loc) Β· 4.54 KB
/
.cursorrules
File metadata and controls
145 lines (129 loc) Β· 4.54 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Cursor Auto Import Settings
editor.codeActionsOnSave.source.addMissingImports = "explicit"
typescript.suggest.autoImports = true
javascript.suggest.autoImports = true
# Tailwind CSS Optimization
tailwindCSS.experimental.configFile = "src/app/globals.css"
tailwindCSS.emmetCompletions = true
tailwindCSS.includeLanguages.typescript = "javascript"
tailwindCSS.includeLanguages.typescriptreact = "javascript"
# Automation and Quality Management
editor.formatOnSave = true
editor.codeActionsOnSave.source.organizeImports = "explicit"
editor.codeActionsOnSave.source.fixAll.eslint = "explicit"
files.autoSave = "afterDelay"
files.autoSaveDelay = 1000
# TypeScript Optimization
typescript.preferences.includePackageJsonAutoImports = "auto"
typescript.suggest.paths = true
typescript.preferences.importModuleSpecifier = "relative"
# Developer Experience
editor.quickSuggestions.other = true
editor.quickSuggestions.strings = true
editor.acceptSuggestionOnCommitCharacter = true
editor.tabSize = 2
editor.insertSpaces = true
# Performance Optimization
search.exclude["**/node_modules"] = true
search.exclude["**/.next"] = true
files.exclude["**/.next"] = true
# Git Workflow Optimization
git.enableSmartCommit = true
git.autofetch = true
git.confirmSync = false
# Prettier Enforcement
editor.defaultFormatter = "esbenp.prettier-vscode"
prettier.requireConfig = true
prettier.useEditorConfig = false
# === DEVELOPMENT RULES ===
# 1. Language Rules
# All comments, README, and documentation must be in English
# Korean is only for user conversations
# 2. Package Manager
# Use pnpm for all package management operations
# pnpm add, pnpm remove, pnpm update, pnpm install
# 3. Tech Stack Awareness
# Current stack: Next.js 15, React 19, TypeScript, Tailwind CSS v4, Vanilla Extract
# Use appropriate patterns and best practices for this stack
# 4. Code Style Guidelines
# - Use TypeScript for all new files
# - Prefer functional components with hooks
# - Use Tailwind CSS for styling when possible
# - Use Vanilla Extract for complex CSS-in-JS needs
# - Follow ESLint and Prettier rules strictly
# 5. File Naming Conventions
# - Components: PascalCase (e.g., UserProfile.tsx)
# - Utilities: camelCase (e.g., formatDate.ts)
# - Constants: UPPER_SNAKE_CASE (e.g., API_ENDPOINTS.ts)
# - CSS modules: camelCase.module.css
# 6. Import Organization
# - React imports first
# - Third-party libraries
# - Internal components/utilities
# - Type imports last
# 7. Commit Message Rules
# Format: type: concise description
# Language: English only
# Length: Maximum 72 characters
# Style: Single line, no body
# Gitmoji will automatically add emojis
# Examples:
# feat: add user authentication system
# fix: resolve navigation state issue
# docs: update API documentation
# style: improve button component styling
# refactor: restructure component architecture
# perf: optimize bundle size and loading
# test: add unit tests for user service
# build: update webpack configuration
# ci: add GitHub Actions workflow
# chore: update dependencies
# 8. PR Template Format
# When creating PR descriptions, follow this structured format:
#
# ## π **PR Description**
#
# ### π― **Overview**
# Brief description of what this PR implements or fixes.
#
# ### β¨ **Key Features**
#
# #### 1. **Feature Category 1**
# - **Specific Feature**: Description of the feature
# - **Technical Detail**: Implementation details
# - **User Impact**: How this affects the user experience
#
# #### 2. **Feature Category 2**
# - **Specific Feature**: Description of the feature
# - **Technical Detail**: Implementation details
# - **User Impact**: How this affects the user experience
#
# #### 3. **Technical Improvements**
# - **Performance**: Any performance improvements
# - **Code Quality**: Code refactoring or improvements
# - **Developer Experience**: DX improvements
#
# ### π§ **Technical Details**
# - **Dependencies**: Any new dependencies added
# - **Breaking Changes**: Any breaking changes
# - **Migration Guide**: If needed, migration steps
#
# ### π§ͺ **Testing**
# - [ ] Unit tests added/updated
# - [ ] Integration tests added/updated
# - [ ] Manual testing completed
# - [ ] Cross-browser testing (if applicable)
#
# ### πΈ **Screenshots/Videos**
# <!-- Add screenshots or videos if UI changes are included -->
#
# ### π **Checklist**
# - [ ] Code follows project style guidelines
# - [ ] Self-review completed
# - [ ] Documentation updated (if needed)
# - [ ] No console errors or warnings
# - [ ] Responsive design tested (if applicable)
#
# ### π **Related Issues**
# Closes #(issue number)
# Related to #(issue number)