File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -17,25 +17,24 @@ This rule reports syntax errors in `<template>`. For example:
17
17
This rule tries to parse directives/mustaches in ` <template> ` by the parser which parses ` <script> ` .
18
18
Then reports syntax errors if exist.
19
19
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']} " >
25
21
```
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>
32
30
```
31
+ </eslint-code-block >
33
32
34
33
## :wrench : Options
35
34
36
35
``` json
37
36
{
38
- "vue/no-parsing-error" : [2 , {
37
+ "vue/no-parsing-error" : [" error " , {
39
38
"abrupt-closing-of-empty-comment" : true ,
40
39
"absence-of-digits-in-numeric-character-reference" : true ,
41
40
"cdata-in-html-content" : true ,
You can’t perform that action at this time.
0 commit comments