skills/tencentblueking/bk-bcs/vue-best-practices

vue-best-practices

SKILL.md

Vue Best Practices

Capability Rules

Rule Keywords Description
vue-tsc-strict-templates undefined component, template error, strictTemplates Catch undefined components in templates
fallthrough-attributes fallthrough, $attrs, wrapper component Type-check fallthrough attributes
strict-css-modules css modules, $style, typo Catch CSS module class typos
data-attributes-config data-*, strictTemplates, attribute Allow data-* attributes
volar-3-breaking-changes volar, vue-language-server, editor Fix Volar 3.0 upgrade issues
module-resolution-bundler cannot find module, @vue/tsconfig, moduleResolution Fix module resolution errors
unplugin-auto-import-conflicts unplugin, auto-import, types any Fix unplugin type conflicts
codeactions-save-performance slow save, vscode, performance Fix slow save in large projects
duplicate-plugin-detection duplicate plugin, vite, vue plugin Detect duplicate plugins
define-model-update-event defineModel, update event, undefined Fix model update errors
with-defaults-union-types withDefaults, union type, default Fix union type defaults
deep-watch-numeric watch, deep, array, Vue 3.5 Efficient array watching
vue-directive-comments @vue-ignore, @vue-skip, template Control template type checking
script-setup-jsdoc jsdoc, script setup, documentation Add JSDoc to script setup
vue-router-typed-params route params, typed router, unplugin Fix route params typing

Efficiency Rules

Rule Keywords Description
hmr-vue-ssr hmr, ssr, hot reload Fix HMR in SSR apps
pinia-store-mocking pinia, mock, vitest, store Mock Pinia stores

Reference


📦 可用资源

  • skill://vue-best-practices/rules/codeactions-save-performance.md
  • skill://vue-best-practices/rules/data-attributes-config.md
  • skill://vue-best-practices/rules/deep-watch-numeric.md
  • skill://vue-best-practices/rules/define-model-update-event.md
  • skill://vue-best-practices/rules/duplicate-plugin-detection.md
  • skill://vue-best-practices/rules/fallthrough-attributes.md
  • skill://vue-best-practices/rules/hmr-vue-ssr.md
  • skill://vue-best-practices/rules/module-resolution-bundler.md
  • skill://vue-best-practices/rules/pinia-store-mocking.md
  • skill://vue-best-practices/rules/script-setup-jsdoc.md
  • skill://vue-best-practices/rules/strict-css-modules.md
  • skill://vue-best-practices/rules/unplugin-auto-import-conflicts.md
  • skill://vue-best-practices/rules/volar-3-breaking-changes.md
  • skill://vue-best-practices/rules/vue-directive-comments.md
  • skill://vue-best-practices/rules/vue-router-typed-params.md
  • skill://vue-best-practices/rules/vue-tsc-strict-templates.md
  • skill://vue-best-practices/rules/with-defaults-union-types.md

根据 SKILL.md 中的 IF-THEN 规则判断是否需要加载

Weekly Installs
1
GitHub Stars
834
First Seen
8 days ago
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1