From 40e96e6774ebbd7065073a545955978a6d162566 Mon Sep 17 00:00:00 2001 From: Hanna Kuczynska Date: Tue, 26 Jul 2022 18:17:37 +0200 Subject: [PATCH] chore: revert unwanted changes --- .eslintrc.js | 9 +++++++++ src/modules/date/index.ts | 2 ++ src/modules/name/index.ts | 2 ++ 3 files changed, 13 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 2e0525bff1b..4e12b747a1f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -51,6 +51,15 @@ module.exports = defineConfig({ }, ], '@typescript-eslint/unbound-method': 'off', + '@typescript-eslint/naming-convention': [ + 'error', + { + format: ['PascalCase'], + selector: ['class', 'interface', 'typeAlias', 'enumMember'], + leadingUnderscore: 'forbid', + trailingUnderscore: 'forbid', + }, + ], }, overrides: [ { diff --git a/src/modules/date/index.ts b/src/modules/date/index.ts index 0ff90db1c81..23cf6222bbf 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 46d31de3ac9..0b1dd44ea04 100644 --- a/src/modules/name/index.ts +++ b/src/modules/name/index.ts @@ -2,7 +2,9 @@ import type { Faker } from '../..'; import { deprecated } from '../../internal/deprecated'; export enum Gender { + // eslint-disable-next-line @typescript-eslint/naming-convention female = 'female', + // eslint-disable-next-line @typescript-eslint/naming-convention male = 'male', }