diff options
| author | Shinigami <[email protected]> | 2022-01-29 18:53:43 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-29 18:53:43 +0100 |
| commit | 86beb8317d213f3a47edb46e36678adeff01c1b1 (patch) | |
| tree | d0ac39226a2d29aee2e77968b1edfc5c69c5ab3f /src/name.ts | |
| parent | 8dfd6ece95b890cdcd14dcde29074ab74475c70e (diff) | |
| download | faker-86beb8317d213f3a47edb46e36678adeff01c1b1.tar.xz faker-86beb8317d213f3a47edb46e36678adeff01c1b1.zip | |
chore: setup improved linting (#151)
Diffstat (limited to 'src/name.ts')
| -rw-r--r-- | src/name.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/name.ts b/src/name.ts index e19dab2c..84f1623d 100644 --- a/src/name.ts +++ b/src/name.ts @@ -139,8 +139,8 @@ export class Name { gender?: string | number ): string { const r = this.faker.datatype.number(8); - let prefix: string = '', - suffix: string = ''; + let prefix = ''; + let suffix = ''; // in particular locales first and last names split by gender, // thus we keep consistency by passing 0 as male and 1 as female @@ -158,6 +158,8 @@ export class Name { if (prefix) { return prefix + ' ' + firstName + ' ' + lastName; } + // TODO @Shinigami92 2022-01-21: Not sure if this fallthrough is wanted + // eslint-disable-next-line no-fallthrough case 1: suffix = this.faker.name.suffix(); if (suffix) { |
