vue/no-v-html
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-v-html": "error",
},
},
]; <div v-html="someHTML"></div>
</template> <span v-html="userName" />
</template><div>{{ someHTML }}</div><h2>{{ userName }}</h2>
<span v-html="htmlUserLink" />Examples from the ESLint documentation.
vue/no-v-html
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-v-html": "error",
},
},
];Oxlint does not have this rule.
nursery/noVueVHtml
nursery · since 2.6.0
{
"linter": {
"rules": {
"nursery": {
"noVueVHtml": "error"
}
}
}
}