From 6b0cecae887cb22729e005e4268401b7c625a42a Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 6 Aug 2023 14:24:10 +0200 Subject: chore(deps): update dependency prettier to v3 (#2260) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- src/modules/helpers/index.ts | 2 +- src/modules/helpers/unique.ts | 2 +- src/modules/word/filterWordListByLength.ts | 11 +++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) (limited to 'src/modules') diff --git a/src/modules/helpers/index.ts b/src/modules/helpers/index.ts index 28c63693..fe3a1966 100644 --- a/src/modules/helpers/index.ts +++ b/src/modules/helpers/index.ts @@ -1308,7 +1308,7 @@ export class HelpersModule { // TODO @Shinigami92 2023-02-14: This `any` type can be fixed by anyone if they want to. // eslint-disable-next-line @typescript-eslint/no-explicit-any ...parameters: any[] - ) => RecordKey + ) => RecordKey, >( method: TMethod, args: Parameters = [] as Parameters, diff --git a/src/modules/helpers/unique.ts b/src/modules/helpers/unique.ts index d6bede7a..c096854a 100644 --- a/src/modules/helpers/unique.ts +++ b/src/modules/helpers/unique.ts @@ -75,7 +75,7 @@ export function exec< // TODO @Shinigami92 2023-02-14: This `any` type can be fixed by anyone if they want to. // eslint-disable-next-line @typescript-eslint/no-explicit-any ...parameters: any[] - ) => RecordKey + ) => RecordKey, >( method: TMethod, args: Parameters, diff --git a/src/modules/word/filterWordListByLength.ts b/src/modules/word/filterWordListByLength.ts index e866bb9e..106e9858 100644 --- a/src/modules/word/filterWordListByLength.ts +++ b/src/modules/word/filterWordListByLength.ts @@ -13,10 +13,13 @@ const STRATEGIES = { wordList: ReadonlyArray, length: { min: number; max: number } ): string[] => { - const wordsByLength = wordList.reduce((data, word) => { - (data[word.length] = data[word.length] ?? []).push(word); - return data; - }, {} as Record); + const wordsByLength = wordList.reduce( + (data, word) => { + (data[word.length] = data[word.length] ?? []).push(word); + return data; + }, + {} as Record + ); const lengths = Object.keys(wordsByLength).map(Number); const min = Math.min(...lengths); -- cgit v1.2.3