Cursor rule
.cursor/rules/wxs-es5.mdcWXS 仅允许 ES5,用于模板内性能敏感计算
Cursor rules
Quality
39/100
Scores the file, not the repository.Length
76 words
4 headings · 1 code blocksRepository
2
— · pushed 2 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# WXS 规范89## 语法限制1011- **仅写 ES5 语法**:使用 `function`、`var`,禁止 `const`/`let`、箭头函数、模板字符串、解构、class 等。12- 适用于在模板侧做的计算,减轻 index.ts 与 setData 压力;简单逻辑仍可放在 ts。1314## 正确写法示例1516```javascript17// ✅ 使用 function、var、字符串拼接18function getHeight(contentHeight) {19 var height = contentHeight20 ? typeof contentHeight === 'number'21 ? contentHeight + 'rpx'22 : contentHeight23 : 'undefined';24 return 'height: ' + height + ';';25}26```2728## 避免2930- ❌ `const` / `let`31- ❌ `() => {}`32- ❌ `` `height: ${h}` ``33- ❌ 解构、展开、class、import/require34
Also in Tuya-Community/miniapp-smart-ui
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 |
|---|---|---|---|---|---|
| Tuya-Community/miniapp-smart-ui.cursor/rules/component-structure.mdc · 2 | Cursor rules | no sections | 38/100 | 3 days ago | |
| Tuya-Community/miniapp-smart-ui.cursor/rules/demo-and-i18n.mdc · 2 | Cursor rules | testdocs | 50/100 | 3 days ago | |
| Tuya-Community/miniapp-smart-ui.cursor/rules/miniapp-test.mdc · 2 | Cursor rules | test | 63/100 | 3 days ago | |
| Tuya-Community/miniapp-smart-uiAGENTS.md · 2 | AGENTS.md | setuptest | 34/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 |
