-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcursor.json
More file actions
161 lines (161 loc) · 4.02 KB
/
cursor.json
File metadata and controls
161 lines (161 loc) · 4.02 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"projectName": "danmaku-anywhere",
"description": "A browser extension and web application for displaying danmaku (bullet comments) on various video platforms",
"defaultLanguage": "typescript",
"frameworks": [
"angular",
"react",
"typescript",
"vite",
"tailwindcss",
"primeng",
"material-ui"
],
"ai": {
"model": "claude-3.5-sonnet",
"temperature": 0.1,
"maxTokens": 4000,
"contextWindow": 200000,
"systemPrompt": "You are an expert TypeScript developer working on the Danmaku Anywhere project. This is a monorepo with Angular, React, and TypeScript packages. Follow the coding standards and patterns established in the project. Always use strict TypeScript, follow the existing code style, and respect the framework-specific best practices outlined in the .cursor/rules files.",
"includeFiles": [
"package.json",
"pnpm-workspace.yaml",
"biome.json",
"tsconfig.base.json",
"app/web/package.json",
"packages/danmaku-anywhere/package.json"
],
"excludeFiles": [
"node_modules/**",
"dist/**",
"build/**",
"*.log",
"*.lock"
]
},
"editor": {
"formatOnSave": true,
"formatOnPaste": true,
"insertSpaces": true,
"tabSize": 2,
"rulers": [80],
"wordWrap": "bounded",
"wordWrapColumn": 80,
"trimTrailingWhitespace": true,
"insertFinalNewline": true,
"files": {
"associations": {
"*.ts": "typescript",
"*.tsx": "typescriptreact",
"*.js": "javascript",
"*.jsx": "javascriptreact",
"*.html": "html",
"*.css": "css",
"*.scss": "scss",
"*.json": "json",
"*.md": "markdown",
"*.yaml": "yaml",
"*.yml": "yaml"
}
}
},
"linting": {
"enabled": true,
"useBiome": true,
"biomeConfig": "biome.json"
},
"testing": {
"frameworks": [
"vitest",
"jasmine",
"karma"
],
"testPatterns": [
"**/*.test.ts",
"**/*.test.tsx",
"**/*.spec.ts",
"**/*.spec.tsx"
]
},
"build": {
"packageManager": "pnpm",
"scripts": {
"dev": "pnpm -r -F \"./packages/**\" dev",
"build": "pnpm -r -F \"./packages/**\" build",
"test": "pnpm -r -F \"./packages/**\" test",
"lint": "pnpm -r -F \"./packages/**\" lint",
"format": "pnpm -r -F \"./packages/**\" format"
}
},
"workspaces": {
"packages": [
"packages/danmaku-anywhere",
"packages/danmaku-converter",
"packages/danmaku-engine",
"packages/danmaku-provider",
"packages/web-scraper",
"packages/shared-ui",
"app/web",
"backend/proxy",
"docs"
]
},
"recommendations": {
"extensions": [
"biomejs.biome",
"angular.ng-template",
"bradlc.vscode-tailwindcss",
"esbenp.prettier-vscode",
"ms-vscode.vscode-typescript-next",
"formulahendry.auto-rename-tag",
"christian-kohler.path-intellisense",
"ms-vscode.vscode-json"
],
"settings": {
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.suggest.autoImports": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit",
"source.fixAll": "explicit"
},
"files.associations": {
"*.component.ts": "typescript",
"*.service.ts": "typescript",
"*.pipe.ts": "typescript",
"*.directive.ts": "typescript"
}
}
},
"search": {
"excludePatterns": [
"**/node_modules/**",
"**/dist/**",
"**/build/**",
"**/*.log",
"**/coverage/**",
"**/.git/**"
],
"includePatterns": [
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx",
"**/*.html",
"**/*.css",
"**/*.scss",
"**/*.json",
"**/*.md"
]
},
"git": {
"ignorePatterns": [
"node_modules/",
"dist/",
"build/",
"*.log",
"coverage/"
],
"commitMessageFormat": "conventional"
}
}