Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuration of the attr-sorted sort order #1210

Open
groenroos opened this issue Oct 25, 2022 · 2 comments
Open

Allow configuration of the attr-sorted sort order #1210

groenroos opened this issue Oct 25, 2022 · 2 comments
Labels
enhancement Functionality that enhances existing features keep-unstale The issue will not be marked as stale by the stale-bot

Comments

@groenroos
Copy link

The attr-sorted rule currently has a rigid built-in order for the attributes, that cannot be changed (as far as I can see).

It would be better if this sort order array was exposed to config, so the end user project can override HTMLHint's built-in sort order with their own - in case of differing views of what order attributes should be in, and/or common project-specific custom attributes.

@coliff coliff added the enhancement Functionality that enhances existing features label Oct 25, 2022
@philipsherry
Copy link

Came to add this request after I had to to recently start working with AEM, which made me want to enforce some rules like this one:

Always place block statements before the regular HTML attributes.”

Thanking you in advance. 🙏

@stale

This comment was marked as outdated.

@stale stale bot added the bot:stale Issue marked as stale because there was no activity label Mar 18, 2023
@coliff coliff added keep-unstale The issue will not be marked as stale by the stale-bot and removed bot:stale Issue marked as stale because there was no activity labels Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Functionality that enhances existing features keep-unstale The issue will not be marked as stale by the stale-bot
Projects
None yet
Development

No branches or pull requests

3 participants