Skip to content

vue/singleline-html-element-content-newline breaks <router-link> visual display #1749

Open
@mariusa

Description

@mariusa

Found similar issue: #1633

What rule do you want to change?
vue/singleline-html-element-content-newline

Does this change cause the rule to produce more or fewer warnings?
don't know

How will the change be implemented? (New option, new default behavior, etc.)?
don't know

Please provide some example code that this change will affect:

<router-link :to="parent">test</router-link>

What does the rule currently do for this code?

<router-link :to="parent">
                    test                
</router-link>

It adds whitespace, which leads to rendering the link in browser as "test_" (extra underlining until closing the tag)

What will the rule do after it's changed?
stop adding whitespace:

<router-link :to="parent">test</router-link>

Additional context

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