Skip to content

Commit cd23ada

Browse files
Add to docs
1 parent 6c775ac commit cd23ada

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/rules/no-v-html.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ This rule reports all uses of `v-html` directive in order to reduce the risk of
3232

3333
## :wrench: Options
3434

35-
Nothing.
35+
```json
36+
{
37+
"vue/no-v-html": ["error", {
38+
"ignorePattern": "/Html$"
39+
}]
40+
}
41+
```
42+
43+
- `ignorePattern` ... disables reporting when the v-html directive references a variable matching this pattern. By default, all v-html uses are forbidden.
3644

3745
## :mute: When Not To Use It
3846

0 commit comments

Comments
 (0)