Merge pull request #17525 from overleaf/ae-upgrade-prettier

Upgrade Prettier to v3

GitOrigin-RevId: 6f1338f196408f3edb4892d5220ad3665ff1a5bc
This commit is contained in:
Alf Eaton
2024-03-26 09:04:05 +00:00
committed by Copybot
parent 6d55f2e09d
commit 6cc2db3cdd
106 changed files with 1031 additions and 980 deletions
@@ -226,8 +226,8 @@ function useReviewPanelState(): ReviewPanel.ReviewPanelState {
MergeAndOverride<
ReviewPanelCommentThread,
ReviewPanelCommentThreadsApi[ThreadId]
>
]
>,
],
]
for (const [threadId, thread] of threadsEntries) {
for (const comment of thread.messages) {
@@ -565,8 +565,8 @@ function useReviewPanelState(): ReviewPanel.ReviewPanelState {
[
UserId,
NonNullable<
typeof trackChangesState[keyof typeof trackChangesState]
>
(typeof trackChangesState)[keyof typeof trackChangesState]
>,
]
>
for (const [userId, { value }] of entries) {
@@ -605,7 +605,7 @@ function useReviewPanelState(): ReviewPanel.ReviewPanelState {
}
const state =
newTrackChangesState[userId] ??
({} as NonNullable<typeof newTrackChangesState[UserId]>)
({} as NonNullable<(typeof newTrackChangesState)[UserId]>)
newTrackChangesState[userId] = state
if (state.syncState == null || state.syncState === 'synced') {