Page MenuHomePhabricator

[Flow202][electron-update-server][skip-ci] [1/3] Make sure we don't run Prettier on flow-typed folders
ClosedPublic

Authored by ashoat on Nov 5 2023, 6:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 11:26 PM
Unknown Object (File)
Tue, May 7, 12:54 AM
Unknown Object (File)
Sun, May 5, 7:57 PM
Unknown Object (File)
Mon, Apr 15, 8:48 PM
Unknown Object (File)
Mon, Apr 15, 8:48 PM
Unknown Object (File)
Sun, Apr 14, 9:52 PM
Unknown Object (File)
Apr 12 2024, 7:49 PM
Unknown Object (File)
Apr 12 2024, 7:49 PM
Subscribers

Details

Summary

Two changes here:

  1. Update .prettierignore to cover all folders named flow-typed instead of individually enumerating each flow-typed folder in the repo.
  2. Revert the Prettier changes to services/electron-update-server/flow-typed/npm/express_v4.17.x.js. This is to make it easier to diff against upstream changes, and to make sure it matches the libdef we have in the keyserver folder.
NOTE: CI will fail on this diff. I considered the possibility of fixing Flow errors BEFORE upgrading Flow, but it wasn't possible... in some cases, the fixes to support the new version of Flow caused errors in the old version. I could have hidden these type errors with $FlowFixMe lines and then later revert those, but that seemed like too much busy work.
Test Plan

Revert changes in D6783 and then run yarn prettier --write services/electron-update-server to confirm that they aren't reintroduced

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat edited the summary of this revision. (Show Details)
Harbormaster returned this revision to the author for changes because remote builds failed.Nov 5 2023, 7:03 AM
Harbormaster failed remote builds in B23758: Diff 32720!
ashoat requested review of this revision.Nov 5 2023, 7:53 AM
This revision is now accepted and ready to land.Nov 6 2023, 1:30 AM
ashoat retitled this revision from [Flow202][electron-update-server] [1/3] Make sure we don't run Prettier on flow-typed folders to [Flow202][electron-update-server][skip-ci] [1/3] Make sure we don't run Prettier on flow-typed folders.Nov 19 2023, 11:42 AM
This revision was landed with ongoing or failed builds.Nov 27 2023, 3:25 PM
This revision was automatically updated to reflect the committed changes.