Skip to content

Commit 1f3770f

Browse files
committed
update no-textarea-mustache
1 parent fea2c98 commit 1f3770f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/rules/no-textarea-mustache.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010

1111
This rule reports mustaches in `<textarea>`.
1212

13-
:-1: Examples of **incorrect** code for this rule:
14-
15-
```html
16-
<textarea>{{ message }}</textarea>
13+
<eslint-code-block :rules="{'vue/no-textarea-mustache': ['error']}">
1714
```
15+
<template>
16+
<!-- ✓ GOOD -->
17+
<textarea v-model="message" />
1818
19-
:+1: Examples of **correct** code for this rule:
20-
21-
```html
22-
<textarea v-model="message"/>
19+
<!-- ✗ BAD -->
20+
<textarea>{{ message }}</textarea>
21+
</template>
2322
```
23+
</eslint-code-block>
2424

2525
## :wrench: Options
2626

2727
Nothing.
2828

29-
## Related links
29+
## :books: Further reading
3030

3131
- [Guide - Forms / Multiline text](https://vuejs.org/v2/guide/forms.html#Multiline-text)
3232

0 commit comments

Comments
 (0)