Skip to content

[attr-sorted] Put the data-* attributes at the end #1588

Closed
@regseb

Description

@regseb

Is your feature request related to a problem? Please describe.
I'd like to put the data-* attributes at the end of the tags. Sort the data-* attributes alphabetically among themselves.

<input name="user" type="text" required data-a="foo" data-b="bar" />

Describe the solution you'd like
Modify the attr-sorted rule to put the data-* attributes at the end.

Describe alternatives you've considered
Add an option to the attr-sorted rule to choose where to position data-* attributes.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR neededhelp wantedWe are looking for community helpkeep-unstaleThe issue will not be marked as stale by the stale-botruleRelates to HTMLHint's core rules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions