Page MenuHomePhabricator

Update Prettier
ClosedPublic

Authored by ashoat on Feb 20 2023, 9:56 AM.
Tags
None
Referenced Files
F3389392: D6783.id22738.diff
Fri, Nov 29, 6:55 PM
F3388908: D6783.diff
Fri, Nov 29, 4:35 PM
Unknown Object (File)
Thu, Nov 14, 4:46 AM
Unknown Object (File)
Oct 27 2024, 5:51 PM
Unknown Object (File)
Oct 24 2024, 8:34 AM
Unknown Object (File)
Oct 23 2024, 10:12 AM
Unknown Object (File)
Oct 23 2024, 10:12 AM
Unknown Object (File)
Oct 22 2024, 5:28 PM
Subscribers
None

Details

Summary

Our current version of Prettier was printing an error when parsing import.meta.url. Upgrading it resolving the problem.

This diff was generated by updating the version of Prettier in package.json, running yarn cleaninstall, and then running prettier --write . from the root of the repo. After that, I just had a couple of places I need to manually fix up.

Test Plan

Flow + ESLint

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 20 2023, 10:00 AM
Harbormaster failed remote builds in B16623: Diff 22730!

Accepting to unblock.

Is all the Prettier config from before "making" it through to the updated version?

For example, in the following examples I much prefer the "before" formatting. The "after" formatting reminds me of the clang-format-style formatting.

0fe7d0.png (1×3 px, 419 KB)

This revision is now accepted and ready to land.Feb 20 2023, 10:36 AM
In D6783#201638, @atul wrote:

Accepting to unblock.

Is all the Prettier config from before "making" it through to the updated version?

For example, in the following examples I much prefer the "before" formatting. The "after" formatting reminds me of the clang-format-style formatting.

0fe7d0.png (1×3 px, 419 KB)

Prettier config is unchanged. I'm pretty sure it's still making it through. I agree with your aesthetic preferences, but I looked through the list of options and couldn't find anything that would fix this for us...

Rebase on D6785 to fix iOS CI build

This revision was automatically updated to reflect the committed changes.