Skip to content

Files

Latest commit

 

History

History
31 lines (21 loc) · 693 Bytes

valid-v-show.md

File metadata and controls

31 lines (21 loc) · 693 Bytes

Pattern: Malformed v-show directive

Issue: -

Description

This rule reports v-show directives in the following cases:

  • The directive has that argument. E.g. <div v-show:aaa></div>
  • The directive has that modifier. E.g. <div v-show.bbb></div>
  • The directive does not have that attribute value. E.g. <div v-show></div>
<template>
  <!-- ✓ GOOD -->
  <div v-show="foo"/>

  <!-- ✗ BAD -->
  <div v-show/>
  <div v-show:aaa="foo"/>
  <div v-show.bbb="foo"/>
</template>

Further Reading