Cursor rule
.cursor/rules/recent-changes.mdc[object Object]
Cursor rules
Quality
35/100
Scores the file, not the repository.Length
65 words
4 headings · 2 code blocksRepository
1
— · pushed 368 days agoLast changed
3 days ago
First indexed 3 days ago.123456# 最近更改78## 优化空内容元素910在最近的更新中,我们修复了一个问题:对于没有内容的元素(如 `<input>`、`<img>`、`<br>` 等),之前会添加空的 `data-component-content="%7B%7D"` 属性。1112现在的实现会检查 content 对象是否为空,如果为空则不添加该属性,使得生成的HTML更加简洁。1314相关更改:15161. 添加检查:`const isContentEmpty = Object.keys(content).length === 0;`172. 条件添加属性:18```js19 ...(isContentEmpty20 ? []21 : [`data-component-content="${encodeURIComponent(JSON.stringify(content))}"`])22```2324## 测试改进2526添加了新的测试用例,专门验证空内容元素不会添加 `data-component-content` 属性:2728```js29it("should not add data-component-content for empty content objects", async () => {30 // 测试代码31});32```3334## 开发工具改进3536更新了测试脚本,改进开发体验:37381. `test`: 运行测试后自动退出(vitest run)392. `test:watch`: 运行测试并监视文件变化(vitest)403. `test:ui`: 在UI界面中运行测试(vitest --ui)41
Also in yan-labs/vite-tagger
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 |
|---|---|---|---|---|---|
| yan-labs/vite-tagger.cursor/rules/implementation-details.mdc · 1 | Cursor rules | no sections | 30/100 | 3 days ago | |
| yan-labs/vite-tagger.cursor/rules/plugin-usage.mdc · 1 | Cursor rules | setup | 65/100 | 3 days ago | |
| yan-labs/vite-tagger.cursor/rules/project-overview.mdc · 1 | Cursor rules | test | 32/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 |
