Skip to content

vue/attributes-order: keep data-test attribute at the end of inline attributes #2324

Open
@VladimirCores

Description

@VladimirCores

What rule do you want to change?
I would like to sort Vue component attribute data-test always at the end of the list of attributes so it will be always at the same position.

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

How will the change be implemented? (New option, new default behavior, etc.)?
it would be great to have special order type like "DATA_TEST__ID"

Please provide some example code that this change will affect:
image

      <UFormGroup :label="Strings.PASSWORD" name="password" data-test="form-group-username">
        <UInput :disabled="isActionsLocked" type="password" v-model="formState.password" />
      </UFormGroup>

What does the rule currently do for this code?
It keeps data-test attribute always at the end of the list of all inline attributes

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