aboutsummaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/locale-proxy.ts2
-rw-r--r--src/modules/helpers/index.ts2
-rw-r--r--src/modules/helpers/unique.ts2
-rw-r--r--src/modules/word/filterWordListByLength.ts11
-rw-r--r--src/utils/types.ts2
5 files changed, 11 insertions, 8 deletions
diff --git a/src/locale-proxy.ts b/src/locale-proxy.ts
index fb51fe81..67b29d47 100644
--- a/src/locale-proxy.ts
+++ b/src/locale-proxy.ts
@@ -61,7 +61,7 @@ export function createLocaleProxy(locale: LocaleDefinition): LocaleProxy {
* @param categoryData The module to create the proxy for.
*/
function createCategoryProxy<
- TCategoryData extends Record<string | symbol, unknown>
+ TCategoryData extends Record<string | symbol, unknown>,
>(
categoryName: string,
categoryData: TCategoryData = {} as TCategoryData
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);
diff --git a/src/utils/types.ts b/src/utils/types.ts
index c7aaf86c..affdda7e 100644
--- a/src/utils/types.ts
+++ b/src/utils/types.ts
@@ -35,5 +35,5 @@ export type MethodOf<TObjectType, TSignature extends Callable = Callable> = {
*/
export type MethodsOf<
TObjectType,
- TSignature extends Callable = Callable
+ TSignature extends Callable = Callable,
> = ReadonlyArray<MethodOf<TObjectType, TSignature>>;