Environment Update #128
Errors 1091, Warnings 2
Found 1091 errors and 2 warnings
Annotations
Check failure on line 69 in packages/nestjs-grpc-identity/integration/grpc-identity.test.ts
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
66 | await service.listen()
67 |
> 68 | client = service.get('client').getService('TestService')
| ^
69 | })
70 |
71 | afterAll(async () => {
Check failure on line 86 in packages/nestjs-grpc-identity/integration/grpc-identity.test.ts
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
83 |
84 | // @ts-expect-error
> 85 | const result = await client.test({ id: 'test' }, metadata).toPromise()
| ^
86 |
87 | expect(result.id).toBe('test')
88 | })
Check failure on line 86 in packages/nestjs-grpc-identity/integration/grpc-identity.test.ts
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
83 |
84 | // @ts-expect-error
> 85 | const result = await client.test({ id: 'test' }, metadata).toPromise()
| ^
86 |
87 | expect(result.id).toBe('test')
88 | })
Check failure on line 100 in packages/nestjs-grpc-identity/integration/grpc-identity.test.ts
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
97 |
98 | // @ts-expect-error
> 99 | await client.test({ id: 'test' }, metadata).toPromise()
| ^
100 | } catch (error) {
101 | expect((error as any).code).toBe(status.UNAUTHENTICATED)
102 | }
Check failure on line 100 in packages/nestjs-grpc-identity/integration/grpc-identity.test.ts
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
97 |
98 | // @ts-expect-error
> 99 | await client.test({ id: 'test' }, metadata).toPromise()
| ^
100 | } catch (error) {
101 | expect((error as any).code).toBe(status.UNAUTHENTICATED)
102 | }
Check failure on line 6 in packages/nestjs-grpc-playground/src/index.ts
github-actions / Lint
(@typescript-eslint/consistent-type-exports): All exports in the declaration are only used as types. Use `export type`.
All exports in the declaration are only used as types. Use `export type`.
Raw output
3 | export { HeaderAuthenticator } from '@atls/nestjs-grpc-http-proxy'
4 | export { PrivateKeyAuthenticator } from '@atls/nestjs-grpc-http-proxy'
> 5 | export { Authenticator } from '@atls/nestjs-grpc-http-proxy'
| ^
6 |
Check failure on line 2 in packages/nestjs-signed-url/src/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 |
4 | import { SignedUrlService } from './services/index.js'
Check failure on line 2 in packages/nestjs-typesense-typeorm/integration/typesense-typeorm.test.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 { INestApplication } from '@nestjs/common'
| ^
2 | import { Test } from '@nestjs/testing'
3 | import { jest } from '@jest/globals'
4 | import { describe } from '@jest/globals'
Check failure on line 12 in packages/nestjs-typesense-typeorm/integration/typesense-typeorm.test.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
9 | import { getRepositoryToken } from '@nestjs/typeorm'
10 | import { GenericContainer } from 'testcontainers'
> 11 | import { StartedTestContainer } from 'testcontainers'
| ^
12 | import { Wait } from 'testcontainers'
13 | import { Repository } from 'typeorm'
14 | import { Client } from 'typesense'
Check failure on line 14 in packages/nestjs-typesense-typeorm/integration/typesense-typeorm.test.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
11 | import { StartedTestContainer } from 'testcontainers'
12 | import { Wait } from 'testcontainers'
> 13 | import { Repository } from 'typeorm'
| ^
14 | import { Client } from 'typesense'
15 |
16 | import { TYPESENSE_MODULE_OPTIONS } from '@atls/nestjs-typesense'
Check failure on line 40 in packages/nestjs-typesense-typeorm/integration/typesense-typeorm.test.ts
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
37 | .start()
38 |
> 39 | const module = await Test.createTestingModule({
| ^
40 | imports: [TypesenseTypeOrmIntegrationModule],
41 | })
42 | .overrideProvider(TYPESENSE_MODULE_OPTIONS)
Check failure on line 2 in packages/nestjs-dataloader/src/decorators/loader.decorator.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 { ExecutionContext } from '@nestjs/common'
| ^
2 | import { InternalServerErrorException } from '@nestjs/common'
3 | import { APP_INTERCEPTOR } from '@nestjs/core'
4 | import { GqlExecutionContext } from '@nestjs/graphql'
Check failure on line 6 in packages/nestjs-dataloader/src/decorators/loader.decorator.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
3 | import { APP_INTERCEPTOR } from '@nestjs/core'
4 | import { GqlExecutionContext } from '@nestjs/graphql'
> 5 | import { GraphQLExecutionContext } from '@nestjs/graphql'
| ^
6 | import { createParamDecorator } from '@nestjs/common'
7 |
8 | import { GET_LOADER_CONTEXT_KEY } from '../constants.js'
Check failure on line 25 in packages/nestjs-dataloader/src/decorators/loader.decorator.ts
github-actions / Lint
(@typescript-eslint/no-unsafe-return): Unsafe return of an `any` typed value.
Unsafe return of an `any` typed value.
Raw output
22 | }
23 |
> 24 | return ctx[GET_LOADER_CONTEXT_KEY](type)
| ^
25 | })
26 |
Check failure on line 25 in packages/nestjs-dataloader/src/decorators/loader.decorator.ts
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
22 | }
23 |
> 24 | return ctx[GET_LOADER_CONTEXT_KEY](type)
| ^
25 | })
26 |
github-actions / Lint
(@typescript-eslint/explicit-function-return-type): Missing return type on function.
Missing return type on function.
Raw output
2 |
3 | export const OrderResultByKey = (key = 'id', defaultValue = undefined) =>
> 4 | (target: any, propertyKey: string, descriptor: PropertyDescriptor) => {
| ^
5 | const original = descriptor.value
6 |
7 | // @ts-ignore eslint-disable-next-line func-names
github-actions / Lint
(@typescript-eslint/explicit-module-boundary-types): Missing return type on function.
Missing return type on function.
Raw output
2 |
3 | export const OrderResultByKey = (key = 'id', defaultValue = undefined) =>
> 4 | (target: any, propertyKey: string, descriptor: PropertyDescriptor) => {
| ^
5 | const original = descriptor.value
6 |
7 | // @ts-ignore eslint-disable-next-line func-names
github-actions / Lint
(@typescript-eslint/explicit-module-boundary-types): Argument 'target' should be typed with a non-any type.
Argument 'target' should be typed with a non-any type.
Raw output
2 |
3 | export const OrderResultByKey = (key = 'id', defaultValue = undefined) =>
> 4 | (target: any, propertyKey: string, descriptor: PropertyDescriptor) => {
| ^
5 | const original = descriptor.value
6 |
7 | // @ts-ignore eslint-disable-next-line func-names
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
5 | const original = descriptor.value
6 |
> 7 | // @ts-ignore eslint-disable-next-line func-names
| ^
8 | descriptor.value = async function (keys, ...args) {
9 | const method = original.bind(this)
10 | const result = await method(keys, ...args)
github-actions / Lint
(@typescript-eslint/explicit-function-return-type): Missing return type on function.
Missing return type on function.
Raw output
6 |
7 | // @ts-ignore eslint-disable-next-line func-names
> 8 | descriptor.value = async function (keys, ...args) {
| ^
9 | const method = original.bind(this)
10 | const result = await method(keys, ...args)
11 |
github-actions / Lint
(func-names): Unexpected unnamed async function.
Unexpected unnamed async function.
Raw output
6 |
7 | // @ts-ignore eslint-disable-next-line func-names
> 8 | descriptor.value = async function (keys, ...args) {
| ^
9 | const method = original.bind(this)
10 | const result = await method(keys, ...args)
11 |
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
7 | // @ts-ignore eslint-disable-next-line func-names
8 | descriptor.value = async function (keys, ...args) {
> 9 | const method = original.bind(this)
| ^
10 | const result = await method(keys, ...args)
11 |
12 | const resultByKey = result.reduce(
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
8 | descriptor.value = async function (keys, ...args) {
9 | const method = original.bind(this)
> 10 | const result = await method(keys, ...args)
| ^
11 |
12 | const resultByKey = result.reduce(
13 | // @ts-ignore
github-actions / Lint
(@typescript-eslint/no-unsafe-call): Unsafe call of an `any` typed value.
Unsafe call of an `any` typed value.
Raw output
10 | const result = await method(keys, ...args)
11 |
> 12 | const resultByKey = result.reduce(
| ^
13 | // @ts-ignore
14 | (res, item) => ({
15 | ...res,
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 |
12 | const resultByKey = result.reduce(
> 13 | // @ts-ignore
| ^
14 | (res, item) => ({
15 | ...res,
16 | [item[key]]: item,