Page MenuHomePhabricator

Update Prettier
ClosedPublic

Authored by ashoat on Feb 20 2023, 9:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 11, 11:54 AM
Unknown Object (File)
Sat, May 11, 10:18 AM
Unknown Object (File)
Sat, May 11, 10:17 AM
Unknown Object (File)
Sat, May 11, 10:17 AM
Unknown Object (File)
Sat, May 11, 10:17 AM
Unknown Object (File)
Sat, May 11, 12:07 AM
Unknown Object (File)
Sat, May 11, 12:07 AM
Unknown Object (File)
Sat, May 11, 12:07 AM
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.