Prettier public API was changed to full async methods in v3, removing some sync methods we used. The PR for upgrading prettier to v3 got merged because the code validation checks weren't flagged as required (they are now). The auto-generator for docs was failing after upgrading to prettier v3, and we need some TS config changes to be able to switch to the new async prettier methods (because of top-level await basically).
I'm reverting prettier upgrade for now. In some follow-up PRs I'll upgrade TS to v5, then update the TS Config based on TotalTypeScript's TSConfig Cheat Sheet, and finally upgrade to prettier v3 again using the new async methods.
This reverts commit 9ef055db83c94f6f3e24b5ed4a0e7093bfb89e05.
Checks
Changes
Context
Prettier public API was changed to full async methods in v3, removing some
sync
methods we used. The PR for upgrading prettier to v3 got merged because the code validation checks weren't flagged as required (they are now). The auto-generator for docs was failing after upgrading to prettier v3, and we need some TS config changes to be able to switch to the new async prettier methods (because of top-level await basically).I'm reverting prettier upgrade for now. In some follow-up PRs I'll upgrade TS to v5, then update the TS Config based on TotalTypeScript's TSConfig Cheat Sheet, and finally upgrade to prettier v3 again using the new async methods.