-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cursorrules
224 lines (224 loc) · 9.5 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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
{
"version": "1.0",
"rules": [
{
"name": "Commit Message Standards",
"description": "Rules for commit messages following conventional commits specification",
"pattern": "^(feat|fix|docs|style|refactor|test|chore|perf|ci|build|revert)(\\(\\w+\\))?:\\s",
"file_patterns": [".git/COMMIT_EDITMSG"],
"message": "Commit messages should follow the Conventional Commits standard: type(scope): description",
"documentation": "docs/git/commits.md"
},
{
"name": "TypeScript Standards",
"description": "TypeScript coding standards and best practices",
"file_patterns": ["*.ts", "*.tsx"],
"documentation": "docs/languages/typescript.md"
},
{
"name": "JavaScript Standards",
"description": "JavaScript coding standards and best practices",
"file_patterns": ["*.js", "*.jsx"],
"documentation": "docs/languages/javascript.md"
},
{
"name": "React Standards",
"description": "React development patterns and best practices",
"file_patterns": ["*.jsx", "*.tsx"],
"documentation": "docs/frameworks/react.md"
},
{
"name": "Git Flow",
"description": "Branch naming and workflow standards",
"file_patterns": [".git/HEAD"],
"pattern": "refs/heads/(main|master|develop|feature/|bugfix/|hotfix/|release/)",
"documentation": "docs/git/flow.md"
},
{
"name": "API Design",
"description": "API design standards and best practices",
"file_patterns": ["**/api/**/*.js", "**/api/**/*.ts", "**/controllers/**/*.js", "**/controllers/**/*.ts"],
"documentation": "docs/architecture/api-design.md"
},
{
"name": "Test Coverage",
"description": "Testing standards and requirements",
"file_patterns": ["**/*.test.js", "**/*.test.ts", "**/*.spec.js", "**/*.spec.ts"],
"documentation": "docs/quality/testing.md"
},
{
"name": "Documentation Standards",
"description": "Documentation requirements and formatting",
"file_patterns": ["**/*.md", "**/*.mdx"],
"documentation": "docs/documentation/technical.md"
},
{
"name": "Code Generation",
"description": "Guidelines for AI-assisted code generation",
"file_patterns": ["**/*.generated.ts", "**/*.generated.js"],
"documentation": "docs/quality/code-generation.md"
},
{
"name": "Bayat Naming Conventions",
"description": "Namespace and package identifier standards for Bayat projects",
"file_patterns": ["**/*.cs", "**/*.ts", "**/*.js", "**/*.rs", "**/package.json", "**/Cargo.toml", "**/*.asmdef"],
"documentation": "docs/general/naming.md"
},
{
"name": "Python Standards",
"description": "Python coding standards and best practices",
"file_patterns": ["*.py"],
"documentation": "docs/languages/python.md"
},
{
"name": "C# Standards",
"description": "C# coding standards and best practices",
"file_patterns": ["*.cs"],
"documentation": "docs/languages/csharp.md"
},
{
"name": "Code Documentation Standards",
"description": "Standards for documenting code (comments, docstrings, etc.)",
"file_patterns": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.py", "**/*.cs", "**/*.java", "**/*.cpp", "**/*.h"],
"documentation": "docs/documentation/code.md"
},
{
"name": "API Documentation Standards",
"description": "Standards for documenting APIs (OpenAPI, etc.)",
"file_patterns": ["**/api/**/*.yaml", "**/api/**/*.json", "**/swagger.json", "**/openapi.yaml"],
"documentation": "docs/documentation/api.md"
},
{
"name": "Secure Coding Standards",
"description": "Guidelines for writing secure code",
"file_patterns": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.py", "**/*.cs", "**/*.java", "**/*.go", "**/*.php"],
"documentation": "docs/security/coding.md"
},
{
"name": "CI/CD Standards",
"description": "Standards for Continuous Integration and Continuous Delivery pipelines",
"file_patterns": [".github/workflows/*.yml", ".github/workflows/*.yaml", "Jenkinsfile", ".gitlab-ci.yml"],
"documentation": "docs/quality/ci-cd.md"
},
{
"name": "Code Review Standards",
"description": "Guidelines for conducting effective code reviews",
"file_patterns": ["**/*"],
"documentation": "docs/quality/code-reviews.md"
},
{
"name": "Dependency Management",
"description": "Standards for managing project dependencies",
"file_patterns": ["**/package.json", "**/requirements.txt", "**/pom.xml", "**/build.gradle", "**/Cargo.toml", "**/*.csproj"],
"documentation": "docs/dependencies/management.md"
},
{
"name": "Architecture Decision Records",
"description": "Standards for documenting architectural decisions",
"file_patterns": ["docs/architecture/adr/*.md", "docs/adr/*.md", "**/adr/*.md"],
"documentation": "docs/architecture/architecture-decision-records.md"
},
{
"name": "Authentication Standards",
"description": "Guidelines for implementing secure authentication",
"file_patterns": ["**/auth*/**/*.{js,ts,py,cs,java,go}", "**/security*/**/*.{js,ts,py,cs,java,go}", "**/login*/**/*.{js,ts,py,cs,java,go}"],
"documentation": "docs/security/authentication.md"
},
{
"name": "Git Repository Standards",
"description": "Standards for naming, structuring, and configuring Git repositories",
"file_patterns": ["README.md", ".gitignore", ".gitattributes"],
"documentation": "docs/git/repos.md"
},
{
"name": "C++ Standards",
"description": "C++ coding standards and best practices",
"file_patterns": ["*.cpp", "*.h", "*.hpp", "*.cc", "*.cxx"],
"documentation": "docs/languages/cpp.md"
},
{
"name": "Java Standards",
"description": "Java coding standards and best practices",
"file_patterns": ["*.java"],
"documentation": "docs/languages/java.md"
},
{
"name": "Rust Standards",
"description": "Rust coding standards and best practices",
"file_patterns": ["*.rs"],
"documentation": "docs/languages/rust.md"
},
{
"name": "Go Standards",
"description": "Go coding standards and best practices",
"file_patterns": ["*.go"],
"documentation": "docs/languages/go.md"
},
{
"name": "Node.js Standards",
"description": "Node.js development patterns and best practices",
"file_patterns": ["*.js", "*.mjs", "*.cjs", "*.ts", "**/package.json"],
"documentation": "docs/frameworks/nodejs.md"
},
{
"name": "Unity Standards",
"description": "Unity development patterns and best practices",
"file_patterns": ["*.cs", "*.unity", "*.prefab", "*.asset"],
"documentation": "docs/frameworks/unity.md"
},
{
"name": "Angular Standards",
"description": "Angular development patterns and best practices",
"file_patterns": ["*.ts", "*.html", "*.scss", "*.css", "angular.json"],
"documentation": "docs/frameworks/angular.md"
},
{
"name": "Flutter Standards",
"description": "Flutter development patterns and best practices",
"file_patterns": ["*.dart", "pubspec.yaml"],
"documentation": "docs/frameworks/flutter.md"
},
{
"name": "Microservices Architecture Standards",
"description": "Standards for designing, building, and operating microservices",
"file_patterns": ["**/*service*/**/*.js", "**/*service*/**/*.ts", "**/*service*/**/*.py", "**/*service*/**/*.cs", "**/*service*/**/*.java", "**/*service*/**/*.go"],
"documentation": "docs/architecture/microservices.md"
},
{
"name": "Database Standards",
"description": "Standards for database design, development, and management",
"file_patterns": ["**/*.sql", "**/migrations/*.js", "**/migrations/*.ts", "**/models/*.js", "**/models/*.ts", "**/schemas/*.json"],
"documentation": "docs/architecture/database-standards.md"
},
{
"name": "Architecture Diagram Standards",
"description": "Standards for creating architecture diagrams",
"file_patterns": ["docs/architecture/diagrams/*.puml", "docs/architecture/diagrams/*.drawio", "docs/architecture/diagrams/*.md"],
"documentation": "docs/architecture/architecture-diagrams.md"
},
{
"name": "Code Refactoring Guidelines",
"description": "Guidelines for when and how to approach code refactoring",
"file_patterns": ["**/*.js", "**/*.ts", "**/*.py", "**/*.cs", "**/*.java", "**/*.go", "**/*.cpp"],
"documentation": "docs/quality/code-refactoring.md"
},
{
"name": "Frontend Testing Standards",
"description": "Standards and best practices for frontend testing",
"file_patterns": ["**/*.test.js", "**/*.spec.js", "**/*.test.ts", "**/*.spec.ts", "**/*.test.jsx", "**/*.spec.jsx", "**/*.test.tsx", "**/*.spec.tsx"],
"documentation": "docs/quality/frontend-testing.md"
},
{
"name": "Versioning Standards",
"description": "Standards for software and convention versioning",
"file_patterns": ["**/package.json", "**/*.csproj", "**/pom.xml", "**/build.gradle", "**/Cargo.toml", "CHANGELOG.md"],
"documentation": "docs/versioning/standards.md"
},
{
"name": "Accessibility Standards",
"description": "Standards for ensuring product accessibility (WCAG 2.1 AA)",
"file_patterns": ["**/*.html", "**/*.jsx", "**/*.tsx", "**/*.vue", "**/*.svelte"],
"documentation": "docs/cross-functional/accessibility.md"
}
]
}