Skip to content

feat(nestjs-kafka): init package #126

feat(nestjs-kafka): init package

feat(nestjs-kafka): init package #126

GitHub Actions / Lint failed Sep 19, 2024 in 0s

Errors 1117, Warnings 2

Found 1117 errors and 2 warnings

Annotations

Check failure on line 7 in examples/grpc-http-proxy/src/bootstrap.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
  4 | import { serverOptions }          from './server.options.js'
  5 |
> 6 | declare const module: any
    | ^
  7 |
  8 | const bootstrap = async () => {
  9 |   const app = await NestFactory.create(GrpcHttpProxyAppModule)

Check failure on line 9 in examples/grpc-http-proxy/src/bootstrap.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/explicit-function-return-type): Missing return type on function.

Missing return type on function.
Raw output
   6 | declare const module: any
   7 |
>  8 | const bootstrap = async () => {
     |                   ^
   9 |   const app = await NestFactory.create(GrpcHttpProxyAppModule)
  10 |
  11 |   app.connectMicroservice(serverOptions)

Check failure on line 21 in examples/grpc-http-proxy/src/bootstrap.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
  18 |
  19 |   if (module.hot) {
> 20 |     module.hot.accept()
     |     ^
  21 |     module.hot.dispose(() => app.close())
  22 |   }
  23 | }

Check failure on line 22 in examples/grpc-http-proxy/src/bootstrap.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
  19 |   if (module.hot) {
  20 |     module.hot.accept()
> 21 |     module.hot.dispose(() => app.close())
     |     ^
  22 |   }
  23 | }
  24 |

Check failure on line 22 in examples/grpc-http-proxy/src/bootstrap.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/promise-function-async): Functions that return promises must be async.

Functions that return promises must be async.
Raw output
  19 |   if (module.hot) {
  20 |     module.hot.accept()
> 21 |     module.hot.dispose(() => app.close())
     |                        ^
  22 |   }
  23 | }
  24 |

Check failure on line 12 in examples/grpc-http-proxy/src/grpc-http-proxy-app.module.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/prefer-ts-expect-error): Use "@ts-expect-error" to ensure an error is actually being suppressed.

Use "@ts-expect-error" to ensure an error is actually being suppressed.
Raw output
   9 | @Module({
  10 |   imports: [
> 11 |     // @ts-ignore
     |     ^
  12 |     GrpcReflectionModule.register(serverOptions.options),
  13 |     // @ts-ignore
  14 |     GrpcHttpProxyModule.register({ options: serverOptions.options }),

Check failure on line 14 in examples/grpc-http-proxy/src/grpc-http-proxy-app.module.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/prefer-ts-expect-error): Use "@ts-expect-error" to ensure an error is actually being suppressed.

Use "@ts-expect-error" to ensure an error is actually being suppressed.
Raw output
  11 |     // @ts-ignore
  12 |     GrpcReflectionModule.register(serverOptions.options),
> 13 |     // @ts-ignore
     |     ^
  14 |     GrpcHttpProxyModule.register({ options: serverOptions.options }),
  15 |     EchoModule,
  16 |   ],

Check failure on line 5 in examples/grpc-http-proxy/src/server.options.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 |
  3 | import { Transport }   from '@nestjs/microservices'
> 4 | import { GrpcOptions } from '@nestjs/microservices'
    | ^
  5 |
  6 | import reflection      from '@atls/nestjs-grpc-reflection/proto/grpc/reflection/v1alpha/reflection.proto'
  7 |

Check failure on line 7 in examples/grpc-playground/src/bootstrap.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
  4 | import { serverOptions }           from './server.options.js'
  5 |
> 6 | declare const module: any
    | ^
  7 |
  8 | const bootstrap = async () => {
  9 |   const app = await NestFactory.create(GrpcPlaygroundAppModule)

Check failure on line 9 in examples/grpc-playground/src/bootstrap.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/explicit-function-return-type): Missing return type on function.

Missing return type on function.
Raw output
   6 | declare const module: any
   7 |
>  8 | const bootstrap = async () => {
     |                   ^
   9 |   const app = await NestFactory.create(GrpcPlaygroundAppModule)
  10 |
  11 |   app.connectMicroservice(serverOptions)

Check failure on line 21 in examples/grpc-playground/src/bootstrap.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
  18 |
  19 |   if (module.hot) {
> 20 |     module.hot.accept()
     |     ^
  21 |     module.hot.dispose(() => app.close())
  22 |   }
  23 | }

Check failure on line 22 in examples/grpc-playground/src/bootstrap.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
  19 |   if (module.hot) {
  20 |     module.hot.accept()
> 21 |     module.hot.dispose(() => app.close())
     |     ^
  22 |   }
  23 | }
  24 |

Check failure on line 22 in examples/grpc-playground/src/bootstrap.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/promise-function-async): Functions that return promises must be async.

Functions that return promises must be async.
Raw output
  19 |   if (module.hot) {
  20 |     module.hot.accept()
> 21 |     module.hot.dispose(() => app.close())
     |                        ^
  22 |   }
  23 | }
  24 |

Check failure on line 5 in examples/grpc-playground/src/server.options.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 |
  3 | import { Transport }   from '@nestjs/microservices'
> 4 | import { GrpcOptions } from '@nestjs/microservices'
    | ^
  5 |
  6 | import reflection      from '@atls/nestjs-grpc-reflection/proto/grpc/reflection/v1alpha/reflection.proto'
  7 |

Check failure on line 7 in examples/grpc-reflection/src/bootstrap.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
  4 | import { serverOptions }           from './server.options.js'
  5 |
> 6 | declare const module: any
    | ^
  7 |
  8 | const bootstrap = async () => {
  9 |   const app = await NestFactory.create(GrpcReflectionAppModule)

Check failure on line 9 in examples/grpc-reflection/src/bootstrap.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/explicit-function-return-type): Missing return type on function.

Missing return type on function.
Raw output
   6 | declare const module: any
   7 |
>  8 | const bootstrap = async () => {
     |                   ^
   9 |   const app = await NestFactory.create(GrpcReflectionAppModule)
  10 |
  11 |   app.connectMicroservice(serverOptions)

Check failure on line 20 in examples/grpc-reflection/src/bootstrap.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
  17 |
  18 |   if (module.hot) {
> 19 |     module.hot.accept()
     |     ^
  20 |     module.hot.dispose(() => app.close())
  21 |   }
  22 | }

Check failure on line 21 in examples/grpc-reflection/src/bootstrap.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
  18 |   if (module.hot) {
  19 |     module.hot.accept()
> 20 |     module.hot.dispose(() => app.close())
     |     ^
  21 |   }
  22 | }
  23 |

Check failure on line 21 in examples/grpc-reflection/src/bootstrap.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/promise-function-async): Functions that return promises must be async.

Functions that return promises must be async.
Raw output
  18 |   if (module.hot) {
  19 |     module.hot.accept()
> 20 |     module.hot.dispose(() => app.close())
     |                        ^
  21 |   }
  22 | }
  23 |

Check failure on line 10 in examples/grpc-reflection/src/grpc-reflection-app.module.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/prefer-ts-expect-error): Use "@ts-expect-error" to ensure an error is actually being suppressed.

Use "@ts-expect-error" to ensure an error is actually being suppressed.
Raw output
   7 |
   8 | @Module({
>  9 |   // @ts-ignore
     |   ^
  10 |   imports: [GrpcReflectionModule.register(serverOptions.options), EchoModule],
  11 | })
  12 | export class GrpcReflectionAppModule {}

Check failure on line 5 in examples/grpc-reflection/src/server.options.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 |
  3 | import { Transport }   from '@nestjs/microservices'
> 4 | import { GrpcOptions } from '@nestjs/microservices'
    | ^
  5 |
  6 | import reflection      from '@atls/nestjs-grpc-reflection/proto/grpc/reflection/v1alpha/reflection.proto'
  7 |

Check failure on line 7 in packages/nestjs-grpc-identity/integration/grpc-identity.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
  4 |
  5 | import { Metadata }                      from '@grpc/grpc-js'
> 6 | import { INestMicroservice }             from '@nestjs/common'
    | ^
  7 | import { ClientsModule }                 from '@nestjs/microservices'
  8 | import { Transport }                     from '@nestjs/microservices'
  9 | import { Test }                          from '@nestjs/testing'

Check failure on line 27 in packages/nestjs-grpc-identity/integration/grpc-identity.test.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/prefer-ts-expect-error): Use "@ts-expect-error" to ensure an error is actually being suppressed.

Use "@ts-expect-error" to ensure an error is actually being suppressed.
Raw output
  24 | describe('grpc identity', () => {
  25 |   let service: INestMicroservice
> 26 |   // @ts-ignore
     |   ^
  27 |   let client
  28 |
  29 |   beforeAll(async () => {

Check failure on line 33 in packages/nestjs-grpc-identity/integration/grpc-identity.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
  30 |     const servicePort = await getPort()
  31 |
> 32 |     const module = await Test.createTestingModule({
     |     ^
  33 |       imports: [
  34 |         GrpcIdentityIntegrationModule,
  35 |         ClientsModule.register([

Check failure on line 68 in packages/nestjs-grpc-identity/integration/grpc-identity.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
  65 |     await service.listen()
  66 |
> 67 |     client = service.get('client').getService('TestService')
     |              ^
  68 |   })
  69 |
  70 |   afterAll(async () => {