Cursor rule
.cursor/rules/plugin-usage.mdc[object Object]
Cursor rules
Quality
65/100
Scores the file, not the repository.Length
120 words
6 headings · 2 code blocksRepository
1
— · pushed 368 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Vite Tagger 使用指南78## 安装910```bash11npm install vite-tagger --save-dev12# 或13pnpm add -D vite-tagger14# 或15yarn add -D vite-tagger16```1718## 配置1920在Vite配置文件中添加插件:2122```js23// vite.config.js / vite.config.ts24import { defineConfig } from 'vite';25import { viteTagger } from 'vite-tagger';2627export default defineConfig({28 plugins: [29 viteTagger({30 // 配置选项31 enabled: true, // 是否启用插件(默认仅在开发模式启用)32 prefixName: 'vt', // 自定义前缀名称(默认为'vt')33 include: ['.tsx', '.jsx'], // 包含的文件扩展名34 exclude: ['node_modules'], // 排除的文件路径模式35 useRelativePath: true, // 是否使用相对路径(默认true)36 debug: false, // 是否启用调试日志37 filter3DElements: true // 是否过滤3D元素(three.js/drei)38 })39 ]40});41```4243## 特性44451. 为HTML元素添加调试属性,包括:46 - `data-vt-id`: 元素唯一标识符,包含文件路径、行号和列号47 - `data-vt-name`: 元素名称48 - `data-component-path`: 元素所在文件的路径(兼容性属性)49 - `data-component-line`: 元素在源代码中的行号(兼容性属性)50 - `data-component-file`: 元素所在的文件名(兼容性属性)51 - `data-component-name`: 元素名称(兼容性属性)52 - `data-component-content`: 元素内容的JSON表示(仅在内容非空时添加)53542. 自动跳过:55 - React组件(首字母大写的元素)56 - Fragment组件57 - 配置的排除文件58 - 3D元素(如果启用filter3DElements)59
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/project-overview.mdc · 1 | Cursor rules | test | 32/100 | 3 days ago | |
| yan-labs/vite-tagger.cursor/rules/recent-changes.mdc · 1 | Cursor rules | test | 35/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 |
