aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.js9
-rw-r--r--src/modules/date/index.ts2
-rw-r--r--src/modules/name/index.ts3
3 files changed, 14 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index afc6a3ba..6f24766d 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 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',
}