vue/prefer-v-model
enforce using
v-modelinstead of:prop/@update:proppair
- ❗ This rule has not been released yet.
- 💡 Some problems reported by this rule are manually fixable by editor suggestions.
📖 Rule Details
In Vue 3, :foo="bar" @update:foo="bar = $event" can be simplified to v-model:foo="bar", and :modelValue="foo" @update:modelValue="foo = $event" can be simplified to v-model="foo". This rule suggests those simplifications.
🔧 Options
Nothing.