From 2f2955df5bdd1e73960e6482a9b27857a6ca834a Mon Sep 17 00:00:00 2001 From: Bolaji Olajide <25608335+BolajiOlajide@users.noreply.github.com> Date: Thu, 5 Sep 2024 00:13:15 +0100 Subject: [PATCH] prettier --- lib/locales/benin/index.ts | 12 ++++---- lib/locales/benin/names.ts | 55 ++++++++++++++++-------------------- lib/locales/efik/index.ts | 14 +++++---- lib/locales/efik/names.ts | 13 +++------ lib/locales/english/index.ts | 12 ++++---- lib/locales/english/names.ts | 19 ++++--------- lib/locales/hausa/index.ts | 12 ++++---- lib/locales/hausa/names.ts | 29 +++++++------------ lib/locales/igbo/index.ts | 12 ++++---- lib/locales/igbo/names.ts | 15 +++------- lib/locales/index.ts | 2 +- lib/locales/urhobo/index.ts | 12 ++++---- lib/locales/urhobo/names.ts | 8 +++--- lib/locales/yoruba/index.ts | 12 ++++---- lib/locales/yoruba/names.ts | 8 +++--- lib/name.ts | 6 ++-- 16 files changed, 111 insertions(+), 130 deletions(-) diff --git a/lib/locales/benin/index.ts b/lib/locales/benin/index.ts index 5eda55e..6a475f4 100644 --- a/lib/locales/benin/index.ts +++ b/lib/locales/benin/index.ts @@ -1,7 +1,7 @@ -import type { Localizer } from ".."; -import type { Random } from "../../random"; -import { Gender } from "../../types"; -import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names"; +import type { Localizer } from '..'; +import type { Random } from '../../random'; +import { Gender } from '../../types'; +import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names'; class BeninLocale implements Localizer { private random: Random; @@ -11,7 +11,9 @@ class BeninLocale implements Localizer { } public firstName(gender: Gender): string { - return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string; + return this.random.arrayElement( + gender === Gender.MALE ? maleFirstNames : femaleFirstNames, + ) as string; } public lastName(): string { diff --git a/lib/locales/benin/names.ts b/lib/locales/benin/names.ts index f1ecede..587d402 100644 --- a/lib/locales/benin/names.ts +++ b/lib/locales/benin/names.ts @@ -25,32 +25,32 @@ export const maleFirstNames = [ 'Odogbo', 'Efosa', 'Osayuki', - 'Nosa' + 'Nosa', ]; export const femaleFirstNames = [ -'Obiémwen', -'Obósuria', -'Obuhun-Emwinhiaye', -'Oghohon', -'Ogikebe', -'Ogiemwénva', -'Ohuimumwén', -'Ohunwu', -'Okhuómóla', -'Okunmaria', -'Okunmariawa', -'Okunsogie', -'Okunsuyi', -'Okunwaye', -'Okunzónamé', -'Oléde', -'Osamuéde', -'Isi', -'Osaréntin', -'Osarétinmwén', -'Osarugue', -'Ehis' + 'Obiémwen', + 'Obósuria', + 'Obuhun-Emwinhiaye', + 'Oghohon', + 'Ogikebe', + 'Ogiemwénva', + 'Ohuimumwén', + 'Ohunwu', + 'Okhuómóla', + 'Okunmaria', + 'Okunmariawa', + 'Okunsogie', + 'Okunsuyi', + 'Okunwaye', + 'Okunzónamé', + 'Oléde', + 'Osamuéde', + 'Isi', + 'Osaréntin', + 'Osarétinmwén', + 'Osarugue', + 'Ehis', ]; export const lastNames = [ @@ -61,12 +61,7 @@ export const lastNames = [ 'Osaze', 'Oseye', 'Enomwoyi', - 'Edenausegboye' + 'Edenausegboye', ]; -export const prefix = [ - 'Oba', - 'Etubom', - 'Obong', - 'Muri' -]; +export const prefix = ['Oba', 'Etubom', 'Obong', 'Muri']; diff --git a/lib/locales/efik/index.ts b/lib/locales/efik/index.ts index aa8fabb..b263b74 100644 --- a/lib/locales/efik/index.ts +++ b/lib/locales/efik/index.ts @@ -1,7 +1,7 @@ -import type { Localizer } from ".."; -import type { Random } from "../../random"; -import { Gender } from "../../types"; -import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names"; +import type { Localizer } from '..'; +import type { Random } from '../../random'; +import { Gender } from '../../types'; +import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names'; class EfikLocale implements Localizer { private random: Random; @@ -11,7 +11,9 @@ class EfikLocale implements Localizer { } public firstName(gender: Gender): string { - return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string; + return this.random.arrayElement( + gender === Gender.MALE ? maleFirstNames : femaleFirstNames, + ) as string; } public lastName(): string { @@ -23,4 +25,4 @@ class EfikLocale implements Localizer { } } -export { EfikLocale} +export { EfikLocale }; diff --git a/lib/locales/efik/names.ts b/lib/locales/efik/names.ts index fa4a1ad..737135b 100644 --- a/lib/locales/efik/names.ts +++ b/lib/locales/efik/names.ts @@ -52,7 +52,7 @@ export const maleFirstNames = [ 'Efanga', 'Aniyom', 'Esang', - 'Amata' + 'Amata', ]; export const femaleFirstNames = [ @@ -87,7 +87,7 @@ export const femaleFirstNames = [ 'Idem', 'Edung', 'Umo', - 'Ekanem' + 'Ekanem', ]; export const lastNames = [ @@ -102,12 +102,7 @@ export const lastNames = [ 'Akpan', 'Edet', 'Umoh', - 'Enang' + 'Enang', ]; -export const prefix = [ - 'Amasi', - 'Etubom', - 'Obong', - 'Muri' -]; +export const prefix = ['Amasi', 'Etubom', 'Obong', 'Muri']; diff --git a/lib/locales/english/index.ts b/lib/locales/english/index.ts index 0481bfc..16adb9c 100644 --- a/lib/locales/english/index.ts +++ b/lib/locales/english/index.ts @@ -1,7 +1,7 @@ -import type { Localizer } from ".."; -import type { Random } from "../../random"; -import { Gender } from "../../types"; -import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names"; +import type { Localizer } from '..'; +import type { Random } from '../../random'; +import { Gender } from '../../types'; +import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names'; class EnglishLocale implements Localizer { private random: Random; @@ -11,7 +11,9 @@ class EnglishLocale implements Localizer { } public firstName(gender: Gender): string { - return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string; + return this.random.arrayElement( + gender === Gender.MALE ? maleFirstNames : femaleFirstNames, + ) as string; } public lastName(): string { diff --git a/lib/locales/english/names.ts b/lib/locales/english/names.ts index 07220c3..ffe0bae 100644 --- a/lib/locales/english/names.ts +++ b/lib/locales/english/names.ts @@ -30,8 +30,8 @@ export const maleFirstNames = [ 'Monday', 'Friday', 'Innocent', - 'Prosper' -];; + 'Prosper', +]; export const femaleFirstNames = [ 'Jane', @@ -64,8 +64,8 @@ export const femaleFirstNames = [ 'Emily', 'Robin', 'Lily', - 'Gisele' -];; + 'Gisele', +]; export const lastNames = [ 'Smith', @@ -82,14 +82,7 @@ export const lastNames = [ 'Severin', 'Simpson', 'Evans', - 'Pitt' + 'Pitt', ]; -export const prefix = [ - 'Mr.', - 'Mrs.', - 'Ms.', - 'Miss', - 'Dr.', - 'Prof.' -]; +export const prefix = ['Mr.', 'Mrs.', 'Ms.', 'Miss', 'Dr.', 'Prof.']; diff --git a/lib/locales/hausa/index.ts b/lib/locales/hausa/index.ts index c229a55..b4790ff 100644 --- a/lib/locales/hausa/index.ts +++ b/lib/locales/hausa/index.ts @@ -1,7 +1,7 @@ -import type { Localizer } from ".."; -import type { Random } from "../../random"; -import { Gender } from "../../types"; -import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names"; +import type { Localizer } from '..'; +import type { Random } from '../../random'; +import { Gender } from '../../types'; +import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names'; class HausaLocale implements Localizer { private random: Random; @@ -11,7 +11,9 @@ class HausaLocale implements Localizer { } public firstName(gender: Gender): string { - return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string; + return this.random.arrayElement( + gender === Gender.MALE ? maleFirstNames : femaleFirstNames, + ) as string; } public lastName(): string { diff --git a/lib/locales/hausa/names.ts b/lib/locales/hausa/names.ts index 216ff27..ea96de5 100644 --- a/lib/locales/hausa/names.ts +++ b/lib/locales/hausa/names.ts @@ -26,18 +26,18 @@ export const maleFirstNames = [ 'Gambo', 'Bashir', 'Adamu', - 'Ali' + 'Ali', ]; export const femaleFirstNames = [ 'Aisha', 'Aminah', - 'Asma\'u', + "Asma'u", 'Zainab', 'Atikah', - 'Fa\'idah', - 'Fa\'iqah', - 'Fa\'izah', + "Fa'idah", + "Fa'iqah", + "Fa'izah", 'Habibah', 'Halimah', 'Hamidah', @@ -50,8 +50,8 @@ export const femaleFirstNames = [ 'Maimuna', 'Nabilah', 'Nafisah', - 'Na\'imah', - 'Rab\'iah', + "Na'imah", + "Rab'iah", 'Safiyah', 'Sakinah', 'Salimah', @@ -64,18 +64,9 @@ export const femaleFirstNames = [ 'Fatima', 'Laraba', 'Hussaina', - 'Hassana' + 'Hassana', ]; -export const lastNames = [ - 'Adamu', - 'Mohammed', - 'Bello', - 'Ali', - 'Aliyu' -]; +export const lastNames = ['Adamu', 'Mohammed', 'Bello', 'Ali', 'Aliyu']; -export const prefix = [ - 'Alhaji', - 'Aboki' -]; +export const prefix = ['Alhaji', 'Aboki']; diff --git a/lib/locales/igbo/index.ts b/lib/locales/igbo/index.ts index 29a41cb..f3ebeec 100644 --- a/lib/locales/igbo/index.ts +++ b/lib/locales/igbo/index.ts @@ -1,7 +1,7 @@ -import type { Localizer } from ".."; -import type { Random } from "../../random"; -import { Gender } from "../../types"; -import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names"; +import type { Localizer } from '..'; +import type { Random } from '../../random'; +import { Gender } from '../../types'; +import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names'; class IgboLocale implements Localizer { private random: Random; @@ -11,7 +11,9 @@ class IgboLocale implements Localizer { } public firstName(gender: Gender): string { - return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string; + return this.random.arrayElement( + gender === Gender.MALE ? maleFirstNames : femaleFirstNames, + ) as string; } public lastName(): string { diff --git a/lib/locales/igbo/names.ts b/lib/locales/igbo/names.ts index a6a4a10..c25f828 100644 --- a/lib/locales/igbo/names.ts +++ b/lib/locales/igbo/names.ts @@ -21,7 +21,7 @@ export const maleFirstNames = [ 'Kelechi', 'Maduka', 'Munachimso', - 'Okafor' + 'Okafor', ]; export const femaleFirstNames = [ @@ -53,16 +53,9 @@ export const femaleFirstNames = [ 'Amarachi', 'Oluchi', 'Chinyere', - 'Chinasa' + 'Chinasa', ]; -export const lastNames = [ - 'Achebe', - 'Amadi', - 'Nwosu' -]; +export const lastNames = ['Achebe', 'Amadi', 'Nwosu']; -export const prefix = [ - 'Igwe', - 'Mazi' -]; +export const prefix = ['Igwe', 'Mazi']; diff --git a/lib/locales/index.ts b/lib/locales/index.ts index cd0f433..c5d2fae 100644 --- a/lib/locales/index.ts +++ b/lib/locales/index.ts @@ -1,4 +1,4 @@ -import type { Gender } from "../types"; +import type { Gender } from '../types'; export interface Localizer { firstName(gender: Gender): string; diff --git a/lib/locales/urhobo/index.ts b/lib/locales/urhobo/index.ts index 30f04d8..2d708bd 100644 --- a/lib/locales/urhobo/index.ts +++ b/lib/locales/urhobo/index.ts @@ -1,7 +1,7 @@ -import type { Localizer } from ".."; -import type { Random } from "../../random"; -import { Gender } from "../../types"; -import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names"; +import type { Localizer } from '..'; +import type { Random } from '../../random'; +import { Gender } from '../../types'; +import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names'; class UrhoboLocale implements Localizer { private random: Random; @@ -11,7 +11,9 @@ class UrhoboLocale implements Localizer { } public firstName(gender: Gender): string { - return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string; + return this.random.arrayElement( + gender === Gender.MALE ? maleFirstNames : femaleFirstNames, + ) as string; } public lastName(): string { diff --git a/lib/locales/urhobo/names.ts b/lib/locales/urhobo/names.ts index a104d5c..0bd3a19 100644 --- a/lib/locales/urhobo/names.ts +++ b/lib/locales/urhobo/names.ts @@ -48,7 +48,7 @@ export const maleFirstNames = [ 'Uvo', 'Ogoro', 'Uloho', - 'Okpara' + 'Okpara', ]; export const femaleFirstNames = [ @@ -82,7 +82,7 @@ export const femaleFirstNames = [ 'Efediome', 'Efevwerha', 'Oghonoro', - 'Oboganriemu' + 'Oboganriemu', ]; export const lastNames = [ @@ -101,7 +101,7 @@ export const lastNames = [ 'Odafe', 'Orogun', 'Sapele', - 'Ododo' + 'Ododo', ]; export const prefix = [ @@ -111,5 +111,5 @@ export const prefix = [ 'Oba', 'Okpako ', 'Ovie ', - 'Omote ' + 'Omote ', ]; diff --git a/lib/locales/yoruba/index.ts b/lib/locales/yoruba/index.ts index 51d834b..c85cb2e 100644 --- a/lib/locales/yoruba/index.ts +++ b/lib/locales/yoruba/index.ts @@ -1,7 +1,7 @@ -import type { Localizer } from ".."; -import type { Random } from "../../random"; -import { Gender } from "../../types"; -import { maleFirstNames, femaleFirstNames, lastNames, prefix } from "./names"; +import type { Localizer } from '..'; +import type { Random } from '../../random'; +import { Gender } from '../../types'; +import { maleFirstNames, femaleFirstNames, lastNames, prefix } from './names'; class YorubaLocale implements Localizer { private random: Random; @@ -11,7 +11,9 @@ class YorubaLocale implements Localizer { } public firstName(gender: Gender): string { - return this.random.arrayElement(gender === Gender.MALE ? maleFirstNames : femaleFirstNames) as string; + return this.random.arrayElement( + gender === Gender.MALE ? maleFirstNames : femaleFirstNames, + ) as string; } public lastName(): string { diff --git a/lib/locales/yoruba/names.ts b/lib/locales/yoruba/names.ts index b68d5ab..2fe0613 100644 --- a/lib/locales/yoruba/names.ts +++ b/lib/locales/yoruba/names.ts @@ -41,7 +41,7 @@ export const maleFirstNames = [ 'Oluwadamisi', 'Oluwadamilare', 'Ayomikun', - 'Babatunde' + 'Babatunde', ]; export const femaleFirstNames = [ @@ -121,7 +121,7 @@ export const femaleFirstNames = [ 'Omolola', 'Adetutu', 'Gbemisola', - 'Busola' + 'Busola', ]; export const lastNames = [ @@ -166,7 +166,7 @@ export const lastNames = [ 'Adebowale', 'Afolabi', 'Falasinu', - 'Aderibigbe' + 'Aderibigbe', ]; export const prefix = [ @@ -176,5 +176,5 @@ export const prefix = [ 'Alagba', 'Dokita', 'Olori', - 'Alhaji' + 'Alhaji', ]; diff --git a/lib/name.ts b/lib/name.ts index 4c73e71..50e3cdc 100644 --- a/lib/name.ts +++ b/lib/name.ts @@ -1,5 +1,5 @@ -import type { Random } from "./random"; -import { Gender, type Locale } from "./types"; +import type { Random } from './random'; +import { Gender, type Locale } from './types'; export class Name { private locale: Locale; @@ -23,4 +23,4 @@ export class Name { // } // return ngFaker.random.arrayElement(ngFaker.definitions.name.female_first_name); } -}; +}