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