aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeyla Jähnig <[email protected]>2022-07-20 11:06:32 +0200
committerGitHub <[email protected]>2022-07-20 09:06:32 +0000
commitb0a4847eb7eac12005c820bc3057f06da93f034f (patch)
treea35120322fffb40c49765a46afe101076b4b89c6 /src
parentb9284dc82f9a9bacf46d424a4a7833d1897db561 (diff)
downloadfaker-b0a4847eb7eac12005c820bc3057f06da93f034f.tar.xz
faker-b0a4847eb7eac12005c820bc3057f06da93f034f.zip
chore(linting): add naming convention rule (#1170)
Diffstat (limited to 'src')
-rw-r--r--src/modules/date/index.ts2
-rw-r--r--src/modules/name/index.ts3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/date/index.ts b/src/modules/date/index.ts
index 0ff90db1..23cf6222 100644
--- a/src/modules/date/index.ts
+++ b/src/modules/date/index.ts
@@ -20,6 +20,8 @@ function toDate(date?: string | Date | number): Date {
/**
* Module to generate dates.
*/
+// disabled until modules are renamed to something with a suffix
+// eslint-disable-next-line @typescript-eslint/naming-convention
export class _Date {
constructor(private readonly faker: Faker) {
// Bind `this` so namespaced is working correctly
diff --git a/src/modules/name/index.ts b/src/modules/name/index.ts
index 46d31de3..3ff775e2 100644
--- a/src/modules/name/index.ts
+++ b/src/modules/name/index.ts
@@ -1,8 +1,11 @@
import type { Faker } from '../..';
import { deprecated } from '../../internal/deprecated';
+// disabled until renamed to Sex
export enum Gender {
+ // eslint-disable-next-line @typescript-eslint/naming-convention
female = 'female',
+ // eslint-disable-next-line @typescript-eslint/naming-convention
male = 'male',
}