fix(common): checks #3
Errors 421, Warnings 1
Found 421 errors and 1 warnings
Annotations
Check failure on line 2 in files/adapters/cqrs-adapter/src/cqrs-adapter.module.ts
github-actions / Lint
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.
All imports in the declaration are only used as types. Use `import type`.
Raw output
> 1 | import { DynamicModule } from '@nestjs/common'
| ^
2 | import { Module } from '@nestjs/common'
3 | import { CqrsModule } from '@nestjs/cqrs'
4 |
github-actions / Lint
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.
All imports in the declaration are only used as types. Use `import type`.
Raw output
2 | import { TypeOrmSeedingModule } from '@atls/nestjs-typeorm-seeding'
3 | import { SeederFactory } from '@atls/nestjs-typeorm-seeding'
> 4 | import { INestMicroservice } from '@nestjs/common'
| ^
5 | import { Test } from '@nestjs/testing'
6 | import { GenericContainer } from 'testcontainers'
7 | import { StartedTestContainer } from 'testcontainers'
github-actions / Lint
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.
All imports in the declaration are only used as types. Use `import type`.
Raw output
5 | import { Test } from '@nestjs/testing'
6 | import { GenericContainer } from 'testcontainers'
> 7 | import { StartedTestContainer } from 'testcontainers'
| ^
8 | import { Wait } from 'testcontainers'
9 | import { promises as fs } from 'fs'
10 | import { join } from 'path'
github-actions / Lint
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.
All imports in the declaration are only used as types. Use `import type`.
Raw output
15 | import { FilesServiceClientModule } from '@atls/services-proto-files'
16 | import { FILES_SERVICE_CLIENT_TOKEN } from '@atls/services-proto-files'
> 17 | import { FilesServiceClient } from '@atls/services-proto-files'
| ^
18 | import { FILES_INFRASTRUCTURE_MODULE_OPTIONS } from '@files/infrastructure-module'
19 | import { FileAggregate } from '@files/infrastructure-module'
20 | import { FILES_STORAGE_MODULE_OPTIONS } from '@files/storage-adapter-module'
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
24 | import { AuthMetadataFactory } from './utils'
25 |
> 26 | jest.setTimeout(60000)
| ^
27 |
28 | describe('files grpc adapter', () => {
29 | let postgres: StartedTestContainer
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
26 | jest.setTimeout(60000)
27 |
> 28 | describe('files grpc adapter', () => {
| ^
29 | let postgres: StartedTestContainer
30 | let service: INestMicroservice
31 | let client: FilesServiceClient
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
34 | const metadataFactory = new AuthMetadataFactory(join(__dirname, 'fixtures/.jwks.pem'))
35 |
> 36 | beforeAll(async () => {
| ^
37 | postgres = await new GenericContainer('bitnami/postgresql')
38 | .withWaitStrategy(Wait.forLogMessage('database system is ready to accept connections'))
39 | .withEnv('POSTGRESQL_PASSWORD', 'password')
github-actions / Lint
(@next/next/no-assign-module-variable): Do not assign to the variable `module`. See: https://nextjs.org/docs/messages/no-assign-module-variable
Do not assign to the variable `module`. See: https://nextjs.org/docs/messages/no-assign-module-variable
Raw output
44 | const port = await getPort()
45 |
> 46 | const module = await Test.createTestingModule({
| ^
47 | imports: [
48 | FilesServiceClientModule.register({ url: `0.0.0.0:${port}` }),
49 | TypeOrmSeedingModule.register(),
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
47 | imports: [
48 | FilesServiceClientModule.register({ url: `0.0.0.0:${port}` }),
> 49 | TypeOrmSeedingModule.register(),
| ^
50 | FilesServiceEntrypointModule,
51 | ],
52 | })
github-actions / Lint
(@typescript-eslint/no-unsafe-argument): Unsafe argument of type `any` assigned to a parameter of type `PathLike | FileHandle`.
Unsafe argument of type `any` assigned to a parameter of type `PathLike | FileHandle`.
Raw output
67 | jwksUri: join(__dirname, 'fixtures/.jwks.json'),
68 | fetcher: async (jwksUri) => {
> 69 | const data = await fs.readFile(jwksUri)
| ^
70 |
71 | return JSON.parse(data.toString())
72 | },
github-actions / Lint
(@typescript-eslint/no-unsafe-return): Unsafe return of an `any` typed value.
Unsafe return of an `any` typed value.
Raw output
69 | const data = await fs.readFile(jwksUri)
70 |
> 71 | return JSON.parse(data.toString())
| ^
72 | },
73 | cache: true,
74 | jwksRequestsPerMinute: 5,
github-actions / Lint
(@typescript-eslint/no-unsafe-argument): Unsafe argument of type `any` assigned to a parameter of type `string | symbol | Type<any> | Abstract<any>`.
Unsafe argument of type `any` assigned to a parameter of type `string | symbol | Type<any> | Abstract<any>`.
Raw output
88 |
89 | client = module.get<FilesServiceClient>(FILES_SERVICE_CLIENT_TOKEN)
> 90 | seederFactory = module.get(SeederFactory)
| ^
91 | })
92 |
93 | afterAll(async () => {
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
91 | })
92 |
> 93 | afterAll(async () => {
| ^
94 | await service.close()
95 | await postgres.stop()
96 | })
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
96 | })
97 |
> 98 | it('check list files id query', async () => {
| ^
99 | const ownerId = uuid()
100 |
101 | const seeds = await seederFactory.for(FileAggregate).with({ ownerId }).create(2)
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
99 | const ownerId = uuid()
100 |
> 101 | const seeds = await seederFactory.for(FileAggregate).with({ ownerId }).create(2)
| ^
102 | const metadata = await metadataFactory.createMetadata(ownerId)
103 |
104 | const { files: eqFiles } = await firstValueFrom(
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
99 | const ownerId = uuid()
100 |
> 101 | const seeds = await seederFactory.for(FileAggregate).with({ ownerId }).create(2)
| ^
102 | const metadata = await metadataFactory.createMetadata(ownerId)
103 |
104 | const { files: eqFiles } = await firstValueFrom(
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
99 | const ownerId = uuid()
100 |
> 101 | const seeds = await seederFactory.for(FileAggregate).with({ ownerId }).create(2)
| ^
102 | const metadata = await metadataFactory.createMetadata(ownerId)
103 |
104 | const { files: eqFiles } = await firstValueFrom(
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
132 | )
133 |
> 134 | expect(eqFiles[0].id).toBe(seeds[0].id)
| ^
135 | expect(inFiles[0].id).toBe(seeds[0].id)
136 | expect(eqFiles.length).toBe(inFiles.length)
137 | })
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
132 | )
133 |
> 134 | expect(eqFiles[0].id).toBe(seeds[0].id)
| ^
135 | expect(inFiles[0].id).toBe(seeds[0].id)
136 | expect(eqFiles.length).toBe(inFiles.length)
137 | })
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
133 |
134 | expect(eqFiles[0].id).toBe(seeds[0].id)
> 135 | expect(inFiles[0].id).toBe(seeds[0].id)
| ^
136 | expect(eqFiles.length).toBe(inFiles.length)
137 | })
138 | })
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
133 |
134 | expect(eqFiles[0].id).toBe(seeds[0].id)
> 135 | expect(inFiles[0].id).toBe(seeds[0].id)
| ^
136 | expect(eqFiles.length).toBe(inFiles.length)
137 | })
138 | })
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
134 | expect(eqFiles[0].id).toBe(seeds[0].id)
135 | expect(inFiles[0].id).toBe(seeds[0].id)
> 136 | expect(eqFiles.length).toBe(inFiles.length)
| ^
137 | })
138 | })
139 |
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
134 | expect(eqFiles[0].id).toBe(seeds[0].id)
135 | expect(inFiles[0].id).toBe(seeds[0].id)
> 136 | expect(eqFiles.length).toBe(inFiles.length)
| ^
137 | })
138 | })
139 |
github-actions / Lint
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.
All imports in the declaration are only used as types. Use `import type`.
Raw output
2 | import { GRPC_IDENTITY_MODULE_OPTIONS } from '@atls/nestjs-grpc-identity'
3 | import { Metadata } from '@grpc/grpc-js'
> 4 | import { INestMicroservice } from '@nestjs/common'
| ^
5 | import { Test } from '@nestjs/testing'
6 | import { GenericContainer } from 'testcontainers'
7 | import { StartedTestContainer } from 'testcontainers'
github-actions / Lint
(@typescript-eslint/consistent-type-imports): All imports in the declaration are only used as types. Use `import type`.
All imports in the declaration are only used as types. Use `import type`.
Raw output
5 | import { Test } from '@nestjs/testing'
6 | import { GenericContainer } from 'testcontainers'
> 7 | import { StartedTestContainer } from 'testcontainers'
| ^
8 | import { Wait } from 'testcontainers'
9 | import { promises as fs } from 'fs'
10 | import { createReadStream } from 'fs'