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

Format doctype as lowercase to match Prettier 3.0 #370

Merged
merged 2 commits into from
Aug 21, 2023
Merged

Format doctype as lowercase to match Prettier 3.0 #370

merged 2 commits into from
Aug 21, 2023

Conversation

lucaseverett
Copy link
Contributor

@lucaseverett lucaseverett commented Aug 20, 2023

Changes

Prettier 3.0 changed doctype to be lowercase. This PR changes prettier-plugin-astro to also set a lowercase doctype.

https://prettier.io/blog/2023/07/05/3.0.0.html#print-html5-doctype-in-lowercase-7391httpsgithubcomprettierprettierpull7391-by-fiskerhttpsgithubcomfisker

Testing

Test fixtures were updated for the expected output of lowercase doctype. There is one test fixture that was already commented out, but I updated it as well in case it is ever used again.

Docs

This is documented in the Prettier docs.

@changeset-bot
Copy link

changeset-bot bot commented Aug 20, 2023

🦋 Changeset detected

Latest commit: 818a793

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
prettier-plugin-astro Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@Princesseuh Princesseuh left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

@Princesseuh Princesseuh merged commit b806845 into withastro:main Aug 21, 2023
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.

2 participants