Skip to content

Template No V-Show #1410

Closed
Closed
@martinmckenna

Description

@martinmckenna

Please describe what the rule should do:

Warn users that putting v-show directives on <template /> tags does nothing.

Unlike v-if, v-show adds style attributes, which isn't valid for template tags.

What category should the rule belong to?
[ ] Enforces code style (layout)
[x] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)

Provide 2-3 code examples that this rule should warn about:

<template v-show="someCondition" />

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions