Skip to content

vue/no-custom-modifiers-on-v-model

disallow custom modifiers on v-model used on the component

  • ⚙️ This rule is included in all of "plugin:vue/essential", *.configs["flat/vue2-essential"], "plugin:vue/strongly-recommended", *.configs["flat/vue2-strongly-recommended"], "plugin:vue/recommended" and *.configs["flat/vue2-recommended"].

This rule checks whether v-model used on the component do not have custom modifiers.

📖 Rule Details

This rule reports v-model directives in the following cases:

  • The directive used on the component has custom modifiers. E.g. <MyComponent v-model.aaa="foo" />
Now loading...

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-vue v7.0.0

🔍 Implementation