From 57386e156da0d156e8b9128dc2d8d474c3ea76fa Mon Sep 17 00:00:00 2001 From: Bujidao <3317431882@qq.com> Date: Fri, 12 Jun 2026 17:53:28 +0800 Subject: [PATCH] feat(rules): add Vue coding-style and composables/reactivity rules Add rules/vue/coding-style.md: - + + +``` + +## Single-File Component Structure + +Enforce this order inside `.vue` files: + +1. ` + + + +``` + +## Emits + +- Use type-based `defineEmits<>()` with TypeScript payload signatures. +- Keep event names in kebab-case in templates, camelCase in script. + +```vue + +``` + +## Slots + +- Type slots explicitly with `defineSlots<>()` for TypeScript projects. +- Document slot purpose and expected props in a comment above template usage. + +```vue + +``` + +## Template Conventions + +- Self-close tags with no children: `` +- Use `