File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,32 @@ This rule checks whether template contains single root element valid for Vue 2.
61
61
62
62
## :wrench : Options
63
63
64
- Nothing.
64
+ ``` json
65
+ {
66
+ "vue/no-multiple-template-root" : [" error" , {
67
+ "disallowComments" : false
68
+ }]
69
+ }
70
+ ```
71
+
72
+ - "disallowComments" (` boolean ` ) Enables there should not be any comments in the template root. Default is ` false ` .
73
+
74
+ ### "disallowComments": true
75
+
76
+ <eslint-code-block :rules =" {'vue/no-multiple-template-root': ['error', {disallowComments: true}]} " >
77
+
78
+ ``` vue
79
+ /* ✗ BAD */
80
+ <template>
81
+ <!-- root comment -->
82
+ <div>
83
+ vue eslint plugin
84
+ </div>
85
+ <!-- root comment -->
86
+ </template>
87
+ ```
88
+
89
+ </eslint-code-block >
65
90
66
91
## :rocket : Version
67
92
You can’t perform that action at this time.
0 commit comments