Skip to content

feat: bump yarn, versions, convert to esm #1

feat: bump yarn, versions, convert to esm

feat: bump yarn, versions, convert to esm #1

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

Errors 68, Warnings 0

Found 68 errors and 0 warnings

Annotations

Check failure on line 3 in packages/typeorm-logger/src/typeorm.logger.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 { Logger }            from '@atls/logger'
> 2 | import { Logger as ILogger } from 'typeorm'
    | ^
  3 |
  4 | export class TypeOrmLogger implements ILogger {
  5 |   private logger = new Logger('typeorm')

Check failure on line 8 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

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

Missing return type on function.
Raw output
   5 |   private logger = new Logger('typeorm')
   6 |
>  7 |   logQuery(query: string, parameters?: any[]) {
     |   ^
   8 |     this.logger.debug({
   9 |       message: 'query',
  10 |       sql: {

Check failure on line 8 in packages/typeorm-logger/src/typeorm.logger.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
   5 |   private logger = new Logger('typeorm')
   6 |
>  7 |   logQuery(query: string, parameters?: any[]) {
     |   ^
   8 |     this.logger.debug({
   9 |       message: 'query',
  10 |       sql: {

Check failure on line 8 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/array-type): Array type using 'any[]' is forbidden. Use 'Array<any>' instead.

Array type using 'any[]' is forbidden. Use 'Array<any>' instead.
Raw output
   5 |   private logger = new Logger('typeorm')
   6 |
>  7 |   logQuery(query: string, parameters?: any[]) {
     |                                        ^
   8 |     this.logger.debug({
   9 |       message: 'query',
  10 |       sql: {

Check failure on line 18 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

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

Missing return type on function.
Raw output
  15 |   }
  16 |
> 17 |   logQueryError(error: string, query: string, parameters?: any[]) {
     |   ^
  18 |     this.logger.error({
  19 |       message: error,
  20 |       sql: {

Check failure on line 18 in packages/typeorm-logger/src/typeorm.logger.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
  15 |   }
  16 |
> 17 |   logQueryError(error: string, query: string, parameters?: any[]) {
     |   ^
  18 |     this.logger.error({
  19 |       message: error,
  20 |       sql: {

Check failure on line 18 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/array-type): Array type using 'any[]' is forbidden. Use 'Array<any>' instead.

Array type using 'any[]' is forbidden. Use 'Array<any>' instead.
Raw output
  15 |   }
  16 |
> 17 |   logQueryError(error: string, query: string, parameters?: any[]) {
     |                                                            ^
  18 |     this.logger.error({
  19 |       message: error,
  20 |       sql: {

Check failure on line 28 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

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

Missing return type on function.
Raw output
  25 |   }
  26 |
> 27 |   logQuerySlow(time: number, query: string, parameters?: any[]) {
     |   ^
  28 |     this.logger.warn({
  29 |       message: 'slow query',
  30 |       sql: {

Check failure on line 28 in packages/typeorm-logger/src/typeorm.logger.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
  25 |   }
  26 |
> 27 |   logQuerySlow(time: number, query: string, parameters?: any[]) {
     |   ^
  28 |     this.logger.warn({
  29 |       message: 'slow query',
  30 |       sql: {

Check failure on line 28 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/array-type): Array type using 'any[]' is forbidden. Use 'Array<any>' instead.

Array type using 'any[]' is forbidden. Use 'Array<any>' instead.
Raw output
  25 |   }
  26 |
> 27 |   logQuerySlow(time: number, query: string, parameters?: any[]) {
     |                                                          ^
  28 |     this.logger.warn({
  29 |       message: 'slow query',
  30 |       sql: {

Check failure on line 39 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

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

Missing return type on function.
Raw output
  36 |   }
  37 |
> 38 |   logSchemaBuild(message: string) {
     |   ^
  39 |     this.logger.debug(message, { context: 'schema' })
  40 |   }
  41 |

Check failure on line 39 in packages/typeorm-logger/src/typeorm.logger.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
  36 |   }
  37 |
> 38 |   logSchemaBuild(message: string) {
     |   ^
  39 |     this.logger.debug(message, { context: 'schema' })
  40 |   }
  41 |

Check failure on line 43 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

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

Missing return type on function.
Raw output
  40 |   }
  41 |
> 42 |   logMigration(message: string) {
     |   ^
  43 |     this.logger.debug(message, { context: 'migration' })
  44 |   }
  45 |

Check failure on line 43 in packages/typeorm-logger/src/typeorm.logger.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
  40 |   }
  41 |
> 42 |   logMigration(message: string) {
     |   ^
  43 |     this.logger.debug(message, { context: 'migration' })
  44 |   }
  45 |

Check failure on line 47 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

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

Missing return type on function.
Raw output
  44 |   }
  45 |
> 46 |   log(level: 'log' | 'info' | 'warn', message: any) {
     |   ^
  47 |     switch (level) {
  48 |       case 'log':
  49 |         this.log(level === 'log' ? 'info' : level, message)

Check failure on line 47 in packages/typeorm-logger/src/typeorm.logger.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
  44 |   }
  45 |
> 46 |   log(level: 'log' | 'info' | 'warn', message: any) {
     |   ^
  47 |     switch (level) {
  48 |       case 'log':
  49 |         this.log(level === 'log' ? 'info' : level, message)

Check failure on line 47 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/sort-type-constituents): Union type constituents must be sorted.

Union type constituents must be sorted.
Raw output
  44 |   }
  45 |
> 46 |   log(level: 'log' | 'info' | 'warn', message: any) {
     |              ^
  47 |     switch (level) {
  48 |       case 'log':
  49 |         this.log(level === 'log' ? 'info' : level, message)

Check failure on line 47 in packages/typeorm-logger/src/typeorm.logger.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

(@typescript-eslint/explicit-module-boundary-types): Argument 'message' should be typed with a non-any type.

Argument 'message' should be typed with a non-any type.
Raw output
  44 |   }
  45 |
> 46 |   log(level: 'log' | 'info' | 'warn', message: any) {
     |                                       ^
  47 |     switch (level) {
  48 |       case 'log':
  49 |         this.log(level === 'log' ? 'info' : level, message)

Check failure on line 2 in packages/typeorm-seeding/src/factories/seeder-entity.factory.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 { EntityTarget }           from 'typeorm'
    | ^
  2 | import { ObjectLiteral }          from 'typeorm'
  3 | import { DeepPartial }            from 'typeorm'
  4 | import { Repository }             from 'typeorm'

Check failure on line 3 in packages/typeorm-seeding/src/factories/seeder-entity.factory.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 { EntityTarget }           from 'typeorm'
> 2 | import { ObjectLiteral }          from 'typeorm'
    | ^
  3 | import { DeepPartial }            from 'typeorm'
  4 | import { Repository }             from 'typeorm'
  5 | import { getMetadataArgsStorage } from 'typeorm'

Check failure on line 4 in packages/typeorm-seeding/src/factories/seeder-entity.factory.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 { EntityTarget }           from 'typeorm'
  2 | import { ObjectLiteral }          from 'typeorm'
> 3 | import { DeepPartial }            from 'typeorm'
    | ^
  4 | import { Repository }             from 'typeorm'
  5 | import { getMetadataArgsStorage } from 'typeorm'
  6 |

Check failure on line 5 in packages/typeorm-seeding/src/factories/seeder-entity.factory.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 { ObjectLiteral }          from 'typeorm'
  3 | import { DeepPartial }            from 'typeorm'
> 4 | import { Repository }             from 'typeorm'
    | ^
  5 | import { getMetadataArgsStorage } from 'typeorm'
  6 |
  7 | import { SeederFactoryOptions }   from './seeder-factory.interfaces.js'

Check failure on line 8 in packages/typeorm-seeding/src/factories/seeder-entity.factory.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 { getMetadataArgsStorage } from 'typeorm'
   6 |
>  7 | import { SeederFactoryOptions }   from './seeder-factory.interfaces.js'
     | ^
   8 | import { generator }              from '../generators/index.js'
   9 | import { isBooleanColumn }        from './typeorm.utils.js'
  10 | import { isNumberColumn }         from './typeorm.utils.js'

Check failure on line 28 in packages/typeorm-seeding/src/factories/seeder-entity.factory.ts

See this annotation in the file changed.

@github-actions github-actions / Lint

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

Missing return type on function.
Raw output
  25 |   }
  26 |
> 27 |   with(data: DeepPartial<Entity> = {} as DeepPartial<Entity>) {
     |   ^
  28 |     this.withData = { ...this.withData, ...data }
  29 |
  30 |     return this

Check failure on line 28 in packages/typeorm-seeding/src/factories/seeder-entity.factory.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
  25 |   }
  26 |
> 27 |   with(data: DeepPartial<Entity> = {} as DeepPartial<Entity>) {
     |   ^
  28 |     this.withData = { ...this.withData, ...data }
  29 |
  30 |     return this