vue/no-restricted-v-bind
eslint-plugin-vue
No autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-restricted-v-bind": "error",
},
},
]; <div v-bind:foo="x" />
<div :bar="x" />
</template> <MyInput :v-model="x" />
<div :v-if="x" />
</template> <div :foo.prop="x" />
</template><div :foo="x" /><CoolButton :foo="x" />Examples from the ESLint documentation.
vue/no-restricted-v-bind
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-restricted-v-bind": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Enforce consistent spacing inside braces in <template>
Enforce consistent spacing before and after keywords in <template>
Enforce placing object properties on separate lines in <template>
Enforce consistent spacing between keys and values in object literal properties in <template>
Enforce consistent linebreak style for operators in <template>