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

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

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!

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

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.

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