vue/v-bind-style
eslint-plugin-vue
Safe autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/v-bind-style": "error",
},
},
]; <div v-bind:foo="bar" />
</template> <div :foo="bar" />
</template> <div :foo="foo" />
</template><div :foo="bar" /><div v-bind:foo="bar" /><div :foo />Examples from the ESLint documentation.
vue/v-bind-style
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/v-bind-style": "error",
},
},
];Oxlint does not have this rule.
style/useVueConsistentVBindStyle
style · since 2.3.11
{
"linter": {
"rules": {
"style": {
"useVueConsistentVBindStyle": "error"
}
}
}
}Require emits option with name triggered by $emit()
Enforce that each component should be in its own file
Disallow variable declarations from shadowing variables declared in the outer scope
Disallow passing multiple arguments to scoped slots