Browse Source

chore(nocodb): lint

pull/6377/head
Wing-Kam Wong 1 year ago
parent
commit
afb195e890
  1. 2
      packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2Trans.ts
  2. 2
      packages/nocodb/src/modules/event-emitter/nestjs-event-emitter.ts
  3. 4
      packages/nocodb/src/version-upgrader/v1-legacy/BaseApiBuilder.ts
  4. 4
      packages/nocodb/src/version-upgrader/v1-legacy/NcProjectBuilder.ts
  5. 8
      packages/nocodb/src/version-upgrader/v1-legacy/gql/GqlApiBuilder.ts
  6. 8
      packages/nocodb/src/version-upgrader/v1-legacy/rest/RestApiBuilder.ts

2
packages/nocodb/src/db/sql-mgr/v2/SqlMgrv2Trans.ts

@ -2,7 +2,7 @@ import KnexMigratorv2Tans from '../../sql-migrator/lib/KnexMigratorv2Tans';
import SqlMgrv2 from './SqlMgrv2';
import type { Knex } from 'knex';
import type { XKnex } from '../../CustomKnex';
import Base from '~/models/Base';
import type Base from '~/models/Base';
import NcConnectionMgrv2 from '~/utils/common/NcConnectionMgrv2';
export default class SqlMgrv2Trans extends SqlMgrv2 {

2
packages/nocodb/src/modules/event-emitter/nestjs-event-emitter.ts

@ -1,4 +1,4 @@
import { EventEmitter2 } from '@nestjs/event-emitter';
import type { EventEmitter2 } from '@nestjs/event-emitter';
import type { IEventEmitter } from './event-emitter.interface';
export class NestjsEventEmitter implements IEventEmitter {

4
packages/nocodb/src/version-upgrader/v1-legacy/BaseApiBuilder.ts

@ -4,13 +4,13 @@ import inflection from 'inflection';
import ncModelsOrderUpgrader from './jobs/ncModelsOrderUpgrader';
import ncParentModelTitleUpgrader from './jobs/ncParentModelTitleUpgrader';
import ncRemoveDuplicatedRelationRows from './jobs/ncRemoveDuplicatedRelationRows';
import NcProjectBuilder from './NcProjectBuilder';
import type NcProjectBuilder from './NcProjectBuilder';
import type { XKnex } from '~/db/CustomKnex';
import type { BaseModelSql } from '~/db/BaseModelSql';
import type { MetaService } from '~/meta/meta.service';
import type Noco from '~/Noco';
import type { MysqlClient, PgClient, SqlClient } from 'nc-help';
import { DbConfig, NcConfig } from '~/interface/config';
import type { DbConfig, NcConfig } from '~/interface/config';
import ModelXcMetaFactory from '~/db/sql-mgr/code/models/xc/ModelXcMetaFactory';
import NcConnectionMgr from '~/utils/common/NcConnectionMgr';

4
packages/nocodb/src/version-upgrader/v1-legacy/NcProjectBuilder.ts

@ -1,8 +1,8 @@
import { Router } from 'express';
import { GqlApiBuilder } from './gql/GqlApiBuilder';
import { RestApiBuilder } from './rest/RestApiBuilder';
import Noco from '~/Noco';
import { NcConfig } from '~/interface/config';
import type Noco from '~/Noco';
import type { NcConfig } from '~/interface/config';
import { SqlClientFactory } from '~/db/sql-client/lib/SqlClientFactory';
export default class NcProjectBuilder {

8
packages/nocodb/src/version-upgrader/v1-legacy/gql/GqlApiBuilder.ts

@ -1,10 +1,10 @@
import { Router } from 'express';
import BaseApiBuilder from '../BaseApiBuilder';
import NcProjectBuilder from '../NcProjectBuilder';
import type NcProjectBuilder from '../NcProjectBuilder';
import type XcMetaMgr from '~/interface/XcMetaMgr';
import { DbConfig, NcConfig } from '~/interface/config';
import { MetaService } from '~/meta/meta.service';
import Noco from '~/Noco';
import type { DbConfig, NcConfig } from '~/interface/config';
import type { MetaService } from '~/meta/meta.service';
import type Noco from '~/Noco';
import GqlXcSchemaFactory from '~/db/sql-mgr/code/gql-schema/xc-ts/GqlXcSchemaFactory';
export class GqlApiBuilder extends BaseApiBuilder<Noco> implements XcMetaMgr {

8
packages/nocodb/src/version-upgrader/v1-legacy/rest/RestApiBuilder.ts

@ -1,10 +1,10 @@
import autoBind from 'auto-bind';
import BaseApiBuilder from '../BaseApiBuilder';
import NcProjectBuilder from '../NcProjectBuilder';
import type NcProjectBuilder from '../NcProjectBuilder';
import type { Router } from 'express';
import { DbConfig, NcConfig } from '~/interface/config';
import { MetaService } from '~/meta/meta.service';
import Noco from '~/Noco';
import type { DbConfig, NcConfig } from '~/interface/config';
import type { MetaService } from '~/meta/meta.service';
import type Noco from '~/Noco';
import NcHelp from '~/utils/NcHelp';
import ExpressXcTsRoutes from '~/db/sql-mgr/code/routes/xc-ts/ExpressXcTsRoutes';
import SwaggerXc from '~/db/sql-mgr/code/routers/xc-ts/SwaggerXc';

Loading…
Cancel
Save