Skip to content

Ability to have attributes sorted #309

@brianjenkins94

Description

@brianjenkins94

Is your feature request related to a problem? Please describe.
Unsorted HTML attributes are annoying to look through but even more annoying to fix. It would be neat if HTMLHint could automatically order attribute tags.

Describe the solution you'd like
When linted, HTML attributes should be sorted in some (ideally configurable) order. Like so:

<div id="one" class="red"></div>
<div class="blue" id="two"></div>

Should become:

<div id="one" class="red"></div>
<div id="two" class="blue"></div>

Describe alternatives you've considered
--

Additional context
I don't exactly agree with this sort order but it illustrates the point:

http://codeguide.co/#html-attribute-order

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot:staleIssue marked as stale because there was no activityfeature requestFunctionality that introduces a new featuretriageAn HTMLHint team member will look at this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions