vue/no-textarea-mustache
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-textarea-mustache": "error",
},
},
]; <textarea>{{ message }}</textarea>
</template><textarea v-model="message" />Examples from the ESLint documentation.
vue/no-textarea-mustache
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-textarea-mustache": "error",
},
},
];Oxlint does not have this rule.
nursery/noVueTextareaMustache
nursery · since 2.6.5
{
"linter": {
"rules": {
"nursery": {
"noVueTextareaMustache": "error"
}
}
}
}Disallow using v-if on the same element as v-for
Disallow use of value wrapped by ref() (Composition API) as an operand
Disallow useless attribute on <template>
Disallow key of <template v-for> placed on child elements