vuejs/eslint-plugin-vue

`max-attributes-per-line` add `min` support

Opened this issue · 0 comments

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>