Skip to content

feat(attr-sort): sort unknown attributes alphabetically #668

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrisguttandin
Copy link

Previously unknown attributes were just ignored. Now they get sorted alphabetically.

BREAKING CHANGE: HTMLHint will now throw an error if unkown attributes are not sorted.

fix #661

Short description of what this resolves:
This PR will make sure all attributes get sorted when using the attr-sorted rule. It will ensure that attributes linted with this rule will always get sorted the same way.

Please let me know if there is anything that should be changed to make this PR mergable.

@github-actions github-actions bot added core Relates to HTMLHint's core APIs and features test labels Aug 16, 2021
Copy link
Member

@thedaviddias thedaviddias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a pretty good addition! Thanks @chrisguttandin!

@stale

This comment was marked as outdated.

@stale stale bot added the bot:stale Issue marked as stale because there was no activity label Nov 17, 2021
@coliff coliff removed the bot:stale Issue marked as stale because there was no activity label Nov 17, 2021
@thedaviddias thedaviddias added the keep-unstale The issue will not be marked as stale by the stale-bot label Nov 23, 2021
@coliff
Copy link
Member

coliff commented Apr 26, 2023

Heya @chrisguttandin - can you please resolve the conflicts so we can get this one merged? Thanks!

@chrisguttandin
Copy link
Author

Hi @coliff, I've rebased the branch on top of the current master.

@chrisguttandin
Copy link
Author

@coliff Is there anything I can do about the failing CI tasks?

@coliff
Copy link
Member

coliff commented May 16, 2023

Sorry for the delay - I think we need @thedaviddias for assistance on this.

@chrisguttandin
Copy link
Author

Hi @coliff, should I maybe close this PR and create a new one with the same changes on top of the latest master?

@coliff
Copy link
Member

coliff commented Apr 28, 2025

hey @chrisguttandin - sorry for the trouble. We appreciate the PR and your patience with this - I know you opened this a long while back! :-)

Yes, I think closing it and making a new PR could be a good idea. I'll be sure to review it as soon as you do. I'm hoping we'll be able to get a new release of HTMLHint out soon. thanks again!

Previously unknown attributes were just ignored. Now they get sorted alphabetically.

BREAKING CHANGE: HTMLHint will now throw an error if unkown attributes are not sorted.

fix htmlhint#661
@chrisguttandin
Copy link
Author

Okay, I rebased the branch on top of master. Could you please take a look, @coliff?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Relates to HTMLHint's core APIs and features keep-unstale The issue will not be marked as stale by the stale-bot test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

attr-sorted doesn't sort unknown tags
3 participants