-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Update Prettier #8420
Conversation
|
"format:code": "prettier -w . --cache", | ||
"format:code": "prettier -w \"**/*\" --ignore-unknown --cache", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
See also #8280 |
Changes
.prettierrc.cjs
file to a normalprettier.config.js
file (requires"type": "module"
in the root as well. Is this a problem?format:code
script to actually format.astro
files. For some reason,prettier -w .
does not pick up on.astro
files, butprettier -w "**/*"
does.Testing
N/A, infra change only
Docs
N/A, infra change only