vue
Vue 3 conventions (Composition API + <script setup>) distilled from the official Vue Style Guide.
npx rulepack add vue
What it covers
- Component naming, file structure, and casing (multi-word names, self-closing, base prefixes)
- Template safety: keyed
v-for, nov-if+v-for, simple expressions, scoped styles - Detailed prop definitions and simple, single-purpose computed properties
- Performance: stable props,
v-once/v-memo,shallowRef/shallowReactive, list virtualization
Source
Distilled from the official Vue.js Style Guide: https://vuejs.org/style-guide/
License
MIT