Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 890 Bytes

no-root-v-if.md

File metadata and controls

37 lines (24 loc) · 890 Bytes
pageClass sidebarDepth title description
rule-details
0
vue/no-root-v-if
disallow `v-if` directives on root element

vue/no-root-v-if

disallow v-if directives on root element

  • This rule has not been released yet.

This rule checks whether every template root is valid.

📖 Rule Details

This rule reports the template root in the following cases:

<template>
  <div v-if="foo"></div>
</template>

🔧 Options

Nothing.

🔍 Implementation