aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorShinigami <[email protected]>2023-08-06 14:24:10 +0200
committerGitHub <[email protected]>2023-08-06 14:24:10 +0200
commit6b0cecae887cb22729e005e4268401b7c625a42a (patch)
treeef05b81a903b44059bd03a4b6f00b694ac99fcdc /src/modules
parent8345e77b1a0633e55baaf7cf404819cd61629e63 (diff)
downloadfaker-6b0cecae887cb22729e005e4268401b7c625a42a.tar.xz
faker-6b0cecae887cb22729e005e4268401b7c625a42a.zip
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 <[email protected]>
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/helpers/index.ts2
-rw-r--r--src/modules/helpers/unique.ts2
-rw-r--r--src/modules/word/filterWordListByLength.ts11
3 files changed, 9 insertions, 6 deletions
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<TMethod> = [] as Parameters<TMethod>,
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<TMethod>,
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<string>,
length: { min: number; max: number }
): string[] => {
- const wordsByLength = wordList.reduce((data, word) => {
- (data[word.length] = data[word.length] ?? []).push(word);
- return data;
- }, {} as Record<number, string[]>);
+ const wordsByLength = wordList.reduce(
+ (data, word) => {
+ (data[word.length] = data[word.length] ?? []).push(word);
+ return data;
+ },
+ {} as Record<number, string[]>
+ );
const lengths = Object.keys(wordsByLength).map(Number);
const min = Math.min(...lengths);