Skip to content

fix(common): checks

fix(common): checks #3

GitHub Actions / Lint failed Sep 13, 2024

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

See this annotation in the file changed.

@github-actions 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 |

Check failure on line 5 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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'

Check failure on line 8 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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'

Check failure on line 18 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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'

Check failure on line 27 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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

Check failure on line 29 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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

Check failure on line 37 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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')

Check failure on line 47 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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(),

Check failure on line 50 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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 |     })

Check failure on line 70 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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 |           },

Check failure on line 72 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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,

Check failure on line 91 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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 () => {

Check failure on line 94 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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 |   })

Check failure on line 99 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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)

Check failure on line 102 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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(

Check failure on line 102 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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(

Check failure on line 102 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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(

Check failure on line 135 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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 |   })

Check failure on line 135 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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 |   })

Check failure on line 136 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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 | })

Check failure on line 136 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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 | })

Check failure on line 137 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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 |

Check failure on line 137 in files/entrypoints/service-entrypoint/integration/files-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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 |

Check failure on line 5 in files/entrypoints/service-entrypoint/integration/upload-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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'

Check failure on line 8 in files/entrypoints/service-entrypoint/integration/upload-grpc-adapter.test.ts

See this annotation in the file changed.

@github-actions 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'