vue/no-v-text
eslint-plugin-vue
No autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-v-text": "error",
},
},
]; <div v-text="foobar"></div>
</template><div>{{ foobar }}</div>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-text
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-v-text": "error",
},
},
];Oxlint does not have this rule.
nursery/noVueVText
nursery · since 2.6.0
{
"linter": {
"rules": {
"nursery": {
"noVueVText": "error"
}
}
}
}Disallow unnecessary concatenation of literals or template literals in <template>
Enforce Boolean comes first in component prop types
Disallow using v-else-if/v-else on the same element as v-for
Enforce passing a single argument to custom event emissions
Require shorthand form attribute when v-bind value is true