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

Update Prettier #8420

Merged
merged 7 commits into from
Sep 6, 2023
Merged

Update Prettier #8420

merged 7 commits into from
Sep 6, 2023

Conversation

natemoo-re
Copy link
Member

Changes

  • Cleans up some changes around Prettier v3
  • Notably, moves our .prettierrc.cjs file to a normal prettier.config.js file (requires "type": "module" in the root as well. Is this a problem?
  • Updates our format:code script to actually format .astro files. For some reason, prettier -w . does not pick up on .astro files, but prettier -w "**/*" does.

Testing

N/A, infra change only

Docs

N/A, infra change only

@changeset-bot
Copy link

changeset-bot bot commented Sep 5, 2023

⚠️ No Changeset found

Latest commit: 8ac2a21

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

.prettierignore Show resolved Hide resolved
package.json Show resolved Hide resolved
Comment on lines -17 to +18
"format:code": "prettier -w . --cache",
"format:code": "prettier -w \"**/*\" --ignore-unknown --cache",
Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently this is why .astro files were not formatted. Seems... wrong?

Copy link
Member Author

Choose a reason for hiding this comment

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

Turns out this an upstream issue! prettier/prettier#15079

@natemoo-re
Copy link
Member Author

See also #8280

@natemoo-re natemoo-re merged commit c06b41a into main Sep 6, 2023
13 checks passed
@natemoo-re natemoo-re deleted the chore/prettier-v3 branch September 6, 2023 15:23
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.

3 participants