From b0a4847eb7eac12005c820bc3057f06da93f034f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leyla=20J=C3=A4hnig?= Date: Wed, 20 Jul 2022 11:06:32 +0200 Subject: chore(linting): add naming convention rule (#1170) --- src/modules/date/index.ts | 2 ++ src/modules/name/index.ts | 3 +++ 2 files changed, 5 insertions(+) (limited to 'src/modules') 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', } -- cgit v1.2.3