Skip to content

Extend vue/padding-line-between-tags to allow conditional tags to be placed next to each other #2215

Open
@LoiLock

Description

@LoiLock

What rule do you want to change?
I suggest a new option for vue/padding-line-between-tags to allow conditional tags to be placed together.

Currently, the following doesn't work with the default settings:
image

This rule has been my favorite addition to eslint-plugin-vue, but our team prefers grouping conditional tags together, since it's easy to identify that there's a conditional element just by looking whether there's a newline between them or not.

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