lint: require for all type imports to be import type
This commit is contained in:
parent
13a6ea89ef
commit
a351dd6aee
|
@ -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'
|
||||
},
|
||||
|
|
|
@ -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-----'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue