useVueValidVHtml
Это содержимое пока не доступно на вашем языке.
Summary
Section titled “Summary”- Rule available since:
v2.3.6 - Diagnostic Category:
lint/nursery/useVueValidVHtml - This rule doesn’t have a fix.
- The default severity of this rule is information.
- This rule belongs to the following domains:
- Sources:
- Same as
vue/valid-v-html
- Same as
How to configure
Section titled “How to configure”{ "linter": { "rules": { "nursery": { "useVueValidVHtml": "error" } } }}Description
Section titled “Description”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>
Examples
Section titled “Examples”Invalid
Section titled “Invalid”<div v-html:aaa="foo"></div><div v-html.bbb="foo"></div><div v-html></div><div v-html="htmlContent"></div>Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.