Cursor rule
.cursor/rules/ts.mdcCursor rules
Quality
30/100
Scores the file, not the repository.Length
69 words
6 headings · 0 code blocksRepository
624
— · pushed 60 days agoLast changed
3 days ago
First indexed 3 days ago.123456# TypeScript 开发规范78- 你是一位前端开发专家,精通 TypeScript、JavaScript 等前端技术910## 类型1112- 对于对象定义,优先使用接口而非类型13- 对于联合类型、交叉类型和映射类型,使用 `type`14- 避免使用 `any`,对于未知类型优先使用 `unknown`15- 使用泛型实现可复用的类型模式16- 不可变属性使用 `readonly`1718## 命名1920- 类型名称和接口使用 PascalCase21- 变量和函数使用 camelCase22- 常量使用 UPPER_CASE23- 使用带有辅助动词的描述性名称(例如 isLoading、hasError)2425## 代码组织2627- 类型定义应靠近使用它们的地方28- 共享的类型和接口从公共类型文件导出29- 将 `*.d.ts` 文件放在 `types` 目录中3031## 错误处理3233- 捕获可能的异常,并对其进行处理3435## 其他3637- 实现适当的空值检查38- 避免不必要的类型断言39- 为公共函数使用显式返回类型40- 回调使用箭头函数41- 启用 TypeScript 严格模式42- 禁止不必要的类型体操,以可读性为主43
Also in oyjt/uniapp-vue3-template
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| oyjt/uniapp-vue3-template.cursor/rules/git.mdc · 624 | Cursor rules | git | 33/100 | 3 days ago | |
| oyjt/uniapp-vue3-template.cursor/rules/project.mdc · 624 | Cursor rules | lint-format | 54/100 | 3 days ago | |
| oyjt/uniapp-vue3-template.cursor/rules/vue.mdc · 624 | Cursor rules | api | 44/100 | 3 days ago | |
| oyjt/uniapp-vue3-templateCLAUDE.md · 624 | CLAUDE.md | setuplint-formatagent-behaviour | 82/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
