-
Notifications
You must be signed in to change notification settings - Fork 3.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 to v3 #12206
Update prettier to v3 #12206
Conversation
Thank you for the pull request, @jjspace! ✅ We can confirm we have a CLA on file for you. |
Thanks @jjspace! As we discussed offline, could you please make separate commits for 1) the |
4173a50
to
09a719b
Compare
Sorry for the delay here @jjspace. If you merge in main this should be good to go. |
Please mention me when this is ready to go, so I can merge ASAP. |
@ggetz this should be good to go. The previous time we did a huge prettier change we provided these instructions I've tagged 21acce1 as The updated instructions would be as follows:
|
Awesome, thanks @jjspace! Please post those instructions to the forum. It would also be kind to let developers with active PRs know and give them a link to the forum thread. |
@jjspace thanks for those clear instructions! I'm not seeing the tags |
@jjhembd pushed! |
@jjspace one suggestion on step 5:
The
When I was merging into #12188, the |
Thank you @jjhembd!! I confused trying this out on another branch and that change helped a lot. I've updated the steps accordingly. I've also posted this to the forum now https://community.cesium.com/t/cesiumjs-updated-prettier-to-version-3-3-3/35473 |
Description
Updates prettier to v3.3.0 which crosses the major version 3 breaking changes
This is a very big pr touching nearly all our source files but all the changes are basically identical.
Key changes:
doctype
overDOCTYPE
I also added a new
.prettierrc
specifically for the Sandcastle Gallery to allow a slightly wider line with to account for the indentation that's removed when sandcastles are actually rendered. This should produce code that matches prettier's default 80 when in the browser editor.When we decide to merge this I'll add some new git tags and post a guide on how to update other branches easier.
Issue number and link
Fixes #12172
Testing plan
npm run prettier
and make sure there are no changed filesnpm run prettier-check
and make sure it doesn't failAuthor checklist
CONTRIBUTORS.md
CHANGES.md
with a short summary of my change