vue/valid-v-text
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-text": "error",
},
},
]; <div v-text />
<div v-text:aaa="foo" />
<div v-text.bbb="foo" />
</template><div v-text="foo" />Examples from the ESLint documentation.
vue/valid-v-text
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/valid-v-text": "error",
},
},
];Oxlint does not have this rule.
correctness/useVueValidVText
correctness · since 2.3.7
{
"linter": {
"rules": {
"correctness": {
"useVueValidVText": "error"
}
}
}
}Enforce specific casing for the Prop name in Vue components
Enforce attribute naming style on custom components in template
Disallow variable declarations from shadowing variables declared in the outer scope