We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2f906f commit 1718b06Copy full SHA for 1718b06
docs/rules/no-multiple-template-root.md
@@ -61,7 +61,32 @@ This rule checks whether template contains single root element valid for Vue 2.
61
62
## :wrench: Options
63
64
-Nothing.
+```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
86
+</template>
87
88
89
+</eslint-code-block>
90
91
## :rocket: Version
92
0 commit comments