Skip to content

Commit

Permalink
9.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed May 10, 2023
1 parent 1a0bd29 commit e1747fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions docs/rules/no-root-v-if.md
Expand Up @@ -3,14 +3,12 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/no-root-v-if
description: disallow `v-if` directives on root element
since: v9.12.0
---

# vue/no-root-v-if

> disallow `v-if` directives on root element
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>

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.

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

Nothing.

## :rocket: Version

This rule was introduced in eslint-plugin-vue v9.12.0

## :mag: Implementation

- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-root-v-if.js)
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-vue",
"version": "9.11.1",
"version": "9.12.0",
"description": "Official ESLint plugin for Vue.js",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit e1747fc

Please sign in to comment.