You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/rules/no-root-v-if.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,12 @@ pageClass: rule-details
3
3
sidebarDepth: 0
4
4
title: vue/no-root-v-if
5
5
description: disallow `v-if` directives on root element
6
+
since: v9.12.0
6
7
---
7
-
8
8
# vue/no-root-v-if
9
9
10
10
> disallow `v-if` directives on root element
11
11
12
-
-:exclamation: <badgetext="This rule has not been released yet."vertical="middle"type="error"> ***This rule has not been released yet.*** </badge>
13
-
14
12
This rule reports template roots with `v-if`. Rendering of the whole component could be made conditional in the parent component (with a `v-if` there) instead.
15
13
16
14
## :book: Rule Details
@@ -31,6 +29,10 @@ This rule reports the template root in the following cases:
31
29
32
30
Nothing.
33
31
32
+
## :rocket: Version
33
+
34
+
This rule was introduced in eslint-plugin-vue v9.12.0
0 commit comments