Skip to content

Commit b1cb83d

Browse files
committed
Revert "chore(linting): add naming convention rule (faker-js#1170)"
This reverts commit b0a4847.
1 parent 8663224 commit b1cb83d

File tree

3 files changed

+0
-14
lines changed

3 files changed

+0
-14
lines changed

.eslintrc.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ module.exports = defineConfig({
5151
},
5252
],
5353
'@typescript-eslint/unbound-method': 'off',
54-
'@typescript-eslint/naming-convention': [
55-
'error',
56-
{
57-
format: ['PascalCase'],
58-
selector: ['class', 'interface', 'typeAlias', 'enumMember'],
59-
leadingUnderscore: 'forbid',
60-
trailingUnderscore: 'forbid',
61-
},
62-
],
6354
},
6455
overrides: [
6556
{

src/modules/date/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ function toDate(date?: string | Date | number): Date {
2020
/**
2121
* Module to generate dates.
2222
*/
23-
// disabled until modules are renamed to something with a suffix
24-
// eslint-disable-next-line @typescript-eslint/naming-convention
2523
export class _Date {
2624
constructor(private readonly faker: Faker) {
2725
// Bind `this` so namespaced is working correctly

src/modules/name/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
import type { Faker } from '../..';
22
import { deprecated } from '../../internal/deprecated';
33

4-
// disabled until renamed to Sex
54
export enum Gender {
6-
// eslint-disable-next-line @typescript-eslint/naming-convention
75
female = 'female',
8-
// eslint-disable-next-line @typescript-eslint/naming-convention
96
male = 'male',
107
}
118

0 commit comments

Comments
 (0)