From 7a4556e9d3b519f5c77b759ce8dac59dcf62b36d Mon Sep 17 00:00:00 2001 From: lukasIO Date: Mon, 6 Nov 2023 09:35:21 +0200 Subject: [PATCH] Fix formatting for prettier v3 (#684) --- .prettierrc | 5 +---- packages/core/src/helper/array-helper.ts | 11 ++++++++--- packages/core/src/observables/participant.ts | 4 ++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.prettierrc b/.prettierrc index ee1cc5eb3..b32e2bdcf 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,8 +4,5 @@ "semi": true, "tabWidth": 2, "printWidth": 100, - "plugins": [], - "pluginSearchDirs": [ - "." - ] + "plugins": [] } \ No newline at end of file diff --git a/packages/core/src/helper/array-helper.ts b/packages/core/src/helper/array-helper.ts index 22498e4ae..8d64176cf 100644 --- a/packages/core/src/helper/array-helper.ts +++ b/packages/core/src/helper/array-helper.ts @@ -1,7 +1,12 @@ export function chunk(input: Array, size: number) { - return input.reduce((arr, item, idx) => { - return idx % size === 0 ? [...arr, [item]] : [...arr.slice(0, -1), [...arr.slice(-1)[0], item]]; - }, [] as Array>); + return input.reduce( + (arr, item, idx) => { + return idx % size === 0 + ? [...arr, [item]] + : [...arr.slice(0, -1), [...arr.slice(-1)[0], item]]; + }, + [] as Array>, + ); } export function zip(a1: Array, a2: Array) { diff --git a/packages/core/src/observables/participant.ts b/packages/core/src/observables/participant.ts index 9b4517822..9ffa6b706 100644 --- a/packages/core/src/observables/participant.ts +++ b/packages/core/src/observables/participant.ts @@ -196,8 +196,8 @@ export function connectedParticipantsObserver( ]), ); - const listener = observeRoomEvents(room, ...roomEvents).subscribe((r) => - subscriber?.next(Array.from(r.participants.values())), + const listener = observeRoomEvents(room, ...roomEvents).subscribe( + (r) => subscriber?.next(Array.from(r.participants.values())), ); if (room.participants.size > 0) { subscriber?.next(Array.from(room.participants.values()));