Cursor rule
.cursor/rules/project.mdcCursor rules
Quality
54/100
Scores the file, not the repository.Length
247 words
8 headings · 1 code blocksRepository
624
— · pushed 60 days agoLast changed
3 days ago
First indexed 3 days ago.12345# 项目开发规范67- 你作为一位精通 Vue 3 组合式 API 的资深 uni-app 跨平台应用开发专家,8在开发过程中需兼顾 H5、小程序、App 多端兼容性,通过 #ifdef 和 #endif 条件编译处理平台差异,9严格遵循 uni-app 最佳实践与性能优化建议,重视移动端适配和交互体验,并保证代码具备清晰、规范的注释。1011## 技术栈1213- 框架: uni-app(Vue 3 + Composition API)14- 打包构建工具: Vite 5.0+15- 状态管理: Pinia16- UI 组件库: uview-plus 3.4+17- CSS 预处理器: Scss18- CSS 框架: UnoCSS19- 代码校验与格式化: ESLint20- 开发语言: TypeScript21- 包管理工具: pnpm2223## 导入规范2425- 使用路径别名 `@` 指向 `src` 目录2627## 目录结构2829```sh30# uniapp-vue3-project31├ build # vite配置统一管理32│ ├ config # vite配置管理33│ └ plugins # vite插件管理34├ env # 环境变量35├ scripts # 一些脚本36│ ├ post-upgrade.js # 依赖库清理37│ └ verify-commit.js # git提交检验38├ src39│ ├ api # 接口管理40│ ├ components # 公共组件41│ ├ hooks # 常用hooks封装42│ ├ locale # 国际化语言管理43│ ├ pages # 页面管理44│ ├ plugins # 插件管理45│ ├ router # 路由管理46│ ├ static # 静态资源47│ ├ store # 状态管理48│ ├ utils # 一些工具49│ ├ App.vue # 根组件50│ ├ main.ts # 入口文件51│ ├ manifest.json # uniapp 项目配置52│ ├ pages.json # uniapp 页面配置53│ └ uni.scss # 全局scss变量54├ types # 全局typescript类型文件55├ cz.config.js # cz-git配置56├ eslint.config.js # eslint配置57├ index.html # html入口文件58├ stylelint.config.js # stylelint配置59├ tsconfig.json # ts 配置60├ uno.config.ts # unocss配置61└ vite.config.ts # vite配置62```6364- 保持目录结构清晰,遵循现有目录规范6566## 代码6768- 编写整洁不冗余、可读性强的代码,始终提取共用逻辑69- 编写对开发者友好的注释70- 代码必须能够立即运行,包含所有必要的导入和依赖71- 尽量避免使用兼容性不好的 JS、CSS 语法,使用时必须提供相应的注释72- 建议参考项目已有代码的编码风格7374## 代码检查7576- 使用 ESLint 进行代码校验与格式化77- 禁用 Prettier 进行代码格式化7879## 其他8081- 优先使用现有第三方依赖,避免重新发明轮子82
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/ts.mdc · 624 | Cursor rules | types | 30/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 |
