-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cursorrules
67 lines (67 loc) · 2.58 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
{
"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"
},
{
"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"
}
]
}