Перейти до вмісту

useVueValidVHtml

Цей контент ще не доступний вашою мовою.

biome.json
{
"linter": {
"rules": {
"nursery": {
"useVueValidVHtml": "error"
}
}
}
}

Enforce valid v-html directives.

This rule reports v-html directives in the following cases:

  • The directive has an argument. E.g. <div v-html:aaa></div>
  • The directive has a modifier. E.g. <div v-html.bbb></div>
  • The directive does not have an attribute value. E.g. <div v-html></div>
<div v-html:aaa="foo"></div>
<div v-html.bbb="foo"></div>
<div v-html></div>
<div v-html="htmlContent"></div>