vue/no-v-model-argument
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-v-model-argument": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
Disallow adding an argument to v-model used in custom component
<MyComponent v-model:aaa="foo" />
</template><MyComponent v-model="foo" />Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
vue/no-v-model-argument
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-v-model-argument": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce consistent line breaks after opening and before closing braces in <template>
Require or disallow newlines between sibling tags in template
Require or disallow padding lines in component definition
Disallow unsupported Vue.js syntax on the specified version