Skip to content

Conversation

@JohnCampionJr
Copy link
Contributor

@JohnCampionJr JohnCampionJr commented Nov 30, 2025

Apparently Prettier v3.7.0 changed the node return type on the AST. This PR fixes the plugin to use the new type.

I also updated the tests to reflect formatting changes since Prettier v3.1.0 - hope that was OK :)

Fixes #126

@ony3000 ony3000 self-assigned this Dec 1, 2025
Copy link
Owner

@ony3000 ony3000 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

According to my research, Prettier 3.7 includes structural changes to the AST based on HTML parser. (See prettier/prettier@d7a3a76)

I'll merge this PR after I've cleaned up the core parts a bit.

@ony3000
Copy link
Owner

ony3000 commented Dec 6, 2025

@JohnCampionJr Could you enable maintainer access to the branch?

@JohnCampionJr
Copy link
Contributor Author

@JohnCampionJr Could you enable maintainer access to the branch?

I would but it's not giving me the option for some reason. So I just added you to the repo directly. Hope thats OK :)

@ony3000 ony3000 merged commit 7e52c77 into ony3000:master Dec 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stops working with Prettier v3.7.x

2 participants