Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e1747fc

Browse files
9.12.0
1 parent 1a0bd29 commit e1747fc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎docs/rules/no-root-v-if.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/no-root-v-if
55
description: disallow `v-if` directives on root element
6+
since: v9.12.0
67
---
7-
88
# vue/no-root-v-if
99

1010
> disallow `v-if` directives on root element
1111
12-
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>
13-
1412
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.
1513

1614
## :book: Rule Details
@@ -31,6 +29,10 @@ This rule reports the template root in the following cases:
3129

3230
Nothing.
3331

32+
## :rocket: Version
33+
34+
This rule was introduced in eslint-plugin-vue v9.12.0
35+
3436
## :mag: Implementation
3537

3638
- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-root-v-if.js)

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-vue",
3-
"version": "9.11.1",
3+
"version": "9.12.0",
44
"description": "Official ESLint plugin for Vue.js",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /