vue/valid-v-bind
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-bind": "error",
},
},
]; <div v-bind />
<div v-bind:aaa.bbb="foo" />
</template><div v-bind="foo" />
<div v-bind:aaa="foo" />
<div :aaa="foo" />
<div :aaa.prop="foo" />Examples from the ESLint documentation.
vue/valid-v-bind
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-bind": "error",
},
},
];Oxlint does not have this rule.
correctness/useVueValidVBind
correctness · since 2.3.6
{
"linter": {
"rules": {
"correctness": {
"useVueValidVBind": "error"
}
}
}
}