chore(deps): upgrade prettier
from v1.x to v3+
#12290
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow-up to #12163, which unblocked the
prettier
upgradePartial fix for #11740 as well
Motivation
Update to the latest version of
prettier
. 1.x has not received an update in 4 years.Also unblock using newer TS syntax such as
import type
andexport type
from TS 3.8 that Prettier v2+ added support forApiDocs
andReports
components #12061 (export type
there), refactor(ui): code-split out largexterm
dep #12158, etcModifications
update
prettier
from v1.x to v3+ and correspondingly updateeslint-config-prettier
from v3.x to v5+reformat UI codebase according to
prettier
v3 rules"trailingComma": "none"
and"arrowParens": "avoid"
preserve the existing style of the codebaseadditional related manual formatting
alphabetize
.prettierrc
a few promise chains were reformatted to long one-liners
Verification
make lint
/yarn lint
pass