Skip to content

max-attributes-per-line add min support #2760

Open
@seahindeniz

Description

@seahindeniz

What rule do you want to change?
vue/max-attributes-per-line

Does this change cause the rule to produce more or fewer warnings?
Yes

How will the change be implemented? (New option, new default behavior, etc.)?
A new option is preferable. Setting min to singleline or multiline

Please provide some example code that this change will affect:

<template>
    <div
        class="w-full"
    />
</template>

What does the rule currently do for this code?
It doesn't move class to single line.

What will the rule do after it's changed?

<template>
    <div class="w-full" />
</template>

Additional context

There's no need to cover this case, I believe because it is alread covered by vue/first-attribute-linebreak

<template>
    <div
        :class="{
            'w-full': someCondition,
        }"
    />
</template>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions