RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/oyjt/uniapp-vue3-template

Cursor rule

.cursor/rules/ts.mdc
Cursor rules

Quality

30/100

Scores the file, not the repository.

Length

69 words

6 headings · 0 code blocks

Repository

624

— · pushed 60 days ago

Last changed

3 days ago

First indexed 3 days ago.
oyjt/uniapp-vue3-template/.cursor/rules/ts.mdcRawGitHub
1---
2globs: *.ts,*.tsx,*.d.ts
3alwaysApply: false
4---
5 
6# TypeScript 开发规范
7 
8- 你是一位前端开发专家,精通 TypeScript、JavaScript 等前端技术
9 
10## 类型
11 
12- 对于对象定义,优先使用接口而非类型
13- 对于联合类型、交叉类型和映射类型,使用 `type`
14- 避免使用 `any`,对于未知类型优先使用 `unknown`
15- 使用泛型实现可复用的类型模式
16- 不可变属性使用 `readonly`
17 
18## 命名
19 
20- 类型名称和接口使用 PascalCase
21- 变量和函数使用 camelCase
22- 常量使用 UPPER_CASE
23- 使用带有辅助动词的描述性名称(例如 isLoading、hasError)
24 
25## 代码组织
26 
27- 类型定义应靠近使用它们的地方
28- 共享的类型和接口从公共类型文件导出
29- 将 `*.d.ts` 文件放在 `types` 目录中
30 
31## 错误处理
32 
33- 捕获可能的异常,并对其进行处理
34 
35## 其他
36 
37- 实现适当的空值检查
38- 避免不必要的类型断言
39- 为公共函数使用显式返回类型
40- 回调使用箭头函数
41- 启用 TypeScript 严格模式
42- 禁止不必要的类型体操,以可读性为主
43 

Sections

  • TypeScript 开发规范
  • 类型
  • 命名
  • 代码组织
  • 错误处理
  • 其他

What it covers

types

Stack — with the evidence

typescript

(1.00)

vite

(1.00)

eslint

(1.00)

node

(0.70)

vue

(0.70)

javascript

(0.60)

pnpm

(0.60)

github-actions

(0.60)

Glob targeting

  • *.ts
  • *.tsx
  • *.d.ts

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
oyjt
Language
—
License
—
Archived
no

All configs in this repo

Also in oyjt/uniapp-vue3-template

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
oyjt/uniapp-vue3-template.cursor/rules/git.mdc · 624Cursor rulestypescriptvite+6git33/1003 days ago
oyjt/uniapp-vue3-template.cursor/rules/project.mdc · 624Cursor rulestypescriptvite+6lint-format54/1003 days ago
oyjt/uniapp-vue3-template.cursor/rules/vue.mdc · 624Cursor rulestypescriptvite+6api44/1003 days ago
oyjt/uniapp-vue3-templateCLAUDE.md · 624CLAUDE.mdtypescriptvite+6setuplint-formatagent-behaviour82/1003 days ago
Diff against .cursor/rules/git.mdc Diff against .cursor/rules/project.mdc Diff against .cursor/rules/vue.mdc Diff against CLAUDE.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack