diff options
| author | ST-DDT <[email protected]> | 2023-11-04 10:40:06 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-04 09:40:06 +0000 |
| commit | 358572d9e76f4cd22bfcb09c092a1eaf3a31f005 (patch) | |
| tree | 836d9b14d2c7e338610dc36073e799a7723af8c8 /test | |
| parent | 22003bbac9518befeaacfc75c9360a273f0ea6b4 (diff) | |
| download | faker-358572d9e76f4cd22bfcb09c092a1eaf3a31f005.tar.xz faker-358572d9e76f4cd22bfcb09c092a1eaf3a31f005.zip | |
infra(typescript-eslint): strict-type-checked (#2467)
Diffstat (limited to 'test')
| -rw-r--r-- | test/modules/helpers.spec.ts | 2 | ||||
| -rw-r--r-- | test/scripts/apidoc/module.example.ts | 2 | ||||
| -rw-r--r-- | test/scripts/apidoc/verify-jsdoc-tags.spec.ts | 8 |
3 files changed, 8 insertions, 4 deletions
diff --git a/test/modules/helpers.spec.ts b/test/modules/helpers.spec.ts index e683d1d8..3f850086 100644 --- a/test/modules/helpers.spec.ts +++ b/test/modules/helpers.spec.ts @@ -95,6 +95,7 @@ describe('helpers', () => { enum MixedFoo { Foo = 0, Bar = 1, + // eslint-disable-next-line @typescript-eslint/no-mixed-enums FooName = 'Foo', BarName = 'Bar', } @@ -256,6 +257,7 @@ describe('helpers', () => { enum FooMixedEnum { Foo = 0, Bar = 1, + // eslint-disable-next-line @typescript-eslint/no-mixed-enums StrFoo = 'FOO', StrBar = 'BAR', } diff --git a/test/scripts/apidoc/module.example.ts b/test/scripts/apidoc/module.example.ts index b3f43a86..0e5d9d89 100644 --- a/test/scripts/apidoc/module.example.ts +++ b/test/scripts/apidoc/module.example.ts @@ -1,3 +1,5 @@ +/* eslint-disable @typescript-eslint/no-extraneous-class -- required for tests */ + /** * A simple module without anything special. */ diff --git a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts index 64cbcdb4..a924c268 100644 --- a/test/scripts/apidoc/verify-jsdoc-tags.spec.ts +++ b/test/scripts/apidoc/verify-jsdoc-tags.spec.ts @@ -47,7 +47,7 @@ describe('verify JSDoc tags', () => { } const allowedReferences = new Set( - Object.values(modules).reduce((acc, [module, methods]) => { + Object.values(modules).reduce<string[]>((acc, [module, methods]) => { const moduleFieldName = extractModuleFieldName(module); return [ ...acc, @@ -55,10 +55,10 @@ describe('verify JSDoc tags', () => { (methodName) => `faker.${moduleFieldName}.${methodName}` ), ]; - }, [] as string[]) + }, []) ); const allowedLinks = new Set( - Object.values(modules).reduce((acc, [module, methods]) => { + Object.values(modules).reduce<string[]>((acc, [module, methods]) => { const moduleFieldName = extractModuleFieldName(module); return [ ...acc, @@ -68,7 +68,7 @@ describe('verify JSDoc tags', () => { `/api/${moduleFieldName}.html#${methodName.toLowerCase()}` ), ]; - }, [] as string[]) + }, []) ); function assertDescription(description: string, isHtml: boolean): void { |
