HTMLHint icon indicating copy to clipboard operation
HTMLHint copied to clipboard

Implement HTML tag-dependent sorting for `attr-sorted`

Open hyperupcall opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Currently, attr-sorted is a native rule, sorting a limited set of properties.

There are many properties missing, and adding all properties in a single way is hard to maintain.

Describe the solution you'd like

This could be fixed by sorting HTML attributes specific to a particular tag.

Additionally, by making sorting per-HTML tag, this would make overriding the configuration easier and less-repetitive

Describe alternatives you've considered

Not doing this

hyperupcall avatar Oct 19 '23 09:10 hyperupcall