diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 8969785..e3527de 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -21,6 +21,7 @@ module.exports = { '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/no-unused-vars': [ 'error', { args: 'none' } ], + '@typescript-eslint/consistent-type-imports': 'error', 'no-unused-vars': [ 'error', { args: 'none' } ], 'indent': 'off' }, diff --git a/src/keys/providers/utils.ts b/src/keys/providers/utils.ts index da10538..82ae91e 100644 --- a/src/keys/providers/utils.ts +++ b/src/keys/providers/utils.ts @@ -1,10 +1,12 @@ -import ky, { ResponsePromise } from 'ky' -import { +import type { ResponsePromise } from 'ky'; +import ky from 'ky' +import type { AdditionalData, GetOperationReturn, HKPOperation, } from './abstract.provider.js' -import { Indexes, parseIndexes } from '../indexes.js' +import type { Indexes} from '../indexes.js'; +import { parseIndexes } from '../indexes.js' const BEGIN_HEADER = '-----BEGIN PGP PUBLIC KEY BLOCK-----' const END_HEADER = '-----END PGP PUBLIC KEY BLOCK-----' diff --git a/src/main.ts b/src/main.ts index 8b26c79..1b81d59 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,7 @@ +import type { + NestFastifyApplication} from '@nestjs/platform-fastify'; import { - FastifyAdapter, - NestFastifyApplication, + FastifyAdapter } from '@nestjs/platform-fastify' import { NestFactory } from '@nestjs/core' import handlebars from 'hbs' diff --git a/test/app.e2e-spec.ts b/test/app.e2e-spec.ts index 928c60c..dc067ff 100644 --- a/test/app.e2e-spec.ts +++ b/test/app.e2e-spec.ts @@ -1,5 +1,6 @@ -import { Test, TestingModule } from '@nestjs/testing' -import { INestApplication } from '@nestjs/common' +import type { TestingModule } from '@nestjs/testing'; +import { Test } from '@nestjs/testing' +import type { INestApplication } from '@nestjs/common' import request from 'supertest' import { AppModule } from './../src/app.module.js'