style: add import linting

Add import linting
This commit is contained in:
Conicaw 2023-11-14 19:26:43 +04:00
parent 06ba2fbc4b
commit d339488805
No known key found for this signature in database
GPG key ID: 15A9B0EA9098ABAB
3 changed files with 10 additions and 5 deletions

View file

@ -21,5 +21,9 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-import-type-side-effects': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/consistent-type-exports': 'error',
},
};

View file

@ -1,9 +1,10 @@
import { DynamicModule, Module, Provider } from '@nestjs/common';
import type { DynamicModule, Provider } from '@nestjs/common';
import { Module } from '@nestjs/common';
import { randomStringGenerator } from '@nestjs/common/utils/random-string-generator.util';
import Axios from 'axios';
import { AXIOS_INSTANCE_TOKEN, HTTP_MODULE_ID, HTTP_MODULE_OPTIONS } from './http.constants';
import { HttpService } from './http.service';
import { HttpModuleAsyncOptions, HttpModuleOptions, HttpModuleOptionsFactory } from './interfaces';
import type { HttpModuleAsyncOptions, HttpModuleOptions, HttpModuleOptionsFactory } from './interfaces';
import axiosRetry from 'axios-retry';
const createAxiosInstance = (config?: HttpModuleOptions) => {

View file

@ -1,6 +1,6 @@
import { ModuleMetadata, Provider, Type } from '@nestjs/common';
import { AxiosRequestConfig } from 'axios';
import IAxiosRetry from 'axios-retry';
import type { ModuleMetadata, Provider, Type } from '@nestjs/common';
import type { AxiosRequestConfig } from 'axios';
import type IAxiosRetry from 'axios-retry';
export type HttpModuleOptions = AxiosRequestConfig &