Skip to content

Commit aef46cf

Browse files
committed
update no-parsing-error
1 parent cf02d78 commit aef46cf

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

docs/rules/no-parsing-error.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,24 @@ This rule reports syntax errors in `<template>`. For example:
1717
This rule tries to parse directives/mustaches in `<template>` by the parser which parses `<script>`.
1818
Then reports syntax errors if exist.
1919

20-
:-1: Examples of **incorrect** code for this rule:
21-
22-
```html
23-
{{ . }}
24-
{{ foo. }}
20+
<eslint-code-block :rules="{'vue/no-parsing-error': ['error']}">
2521
```
26-
27-
:+1: Examples of **correct** code for this rule:
28-
29-
```html
30-
{{ foo }}
31-
{{ foo.bar }}
22+
<template>
23+
<!-- ✗ BAD -->
24+
{{ . }}
25+
{{ foo bar }}
26+
<div :class="*abc*" / @click="def(">
27+
</span>
28+
</div id="ghi">
29+
</template>
3230
```
31+
</eslint-code-block>
3332

3433
## :wrench: Options
3534

3635
```json
3736
{
38-
"vue/no-parsing-error": [2, {
37+
"vue/no-parsing-error": ["error", {
3938
"abrupt-closing-of-empty-comment": true,
4039
"absence-of-digits-in-numeric-character-reference": true,
4140
"cdata-in-html-content": true,

0 commit comments

Comments
 (0)