Просмотр исходного кода

remove eslint-disable @typescript-eslint/consistent-type-imports lines

Yuki Takei 3 месяцев назад
Родитель
Сommit
b88a7a64eb

+ 0 - 2
apps/slackbot-proxy/src/Server.ts

@@ -3,10 +3,8 @@ import '@tsed/swagger';
 import '@tsed/typeorm'; // !! DO NOT MODIFY !! -- https://github.com/tsedio/tsed/issues/1332#issuecomment-837840612
 
 import { createTerminus } from '@godaddy/terminus';
-/* eslint-disable @typescript-eslint/consistent-type-imports */
 import { HttpServer, PlatformApplication } from '@tsed/common';
 import { Configuration, Inject, InjectorService } from '@tsed/di';
-/* eslint-enable @typescript-eslint/consistent-type-imports */
 import bodyParser from 'body-parser';
 import compress from 'compression';
 import cookieParser from 'cookie-parser';

+ 0 - 2
apps/slackbot-proxy/src/controllers/term.ts

@@ -1,6 +1,4 @@
-/* eslint-disable @typescript-eslint/consistent-type-imports */
 import { Controller, PlatformRouter } from '@tsed/common';
-/* eslint-enable @typescript-eslint/consistent-type-imports */
 import type { Request, Response } from 'express';
 
 const isOfficialMode = process.env.OFFICIAL_MODE === 'true';

+ 0 - 3
apps/slackbot-proxy/src/controllers/top.ts

@@ -2,11 +2,8 @@ import { requiredScopes } from '@growi/slack';
 import { Controller, Get, Inject, View } from '@tsed/common';
 import readPkgUp from 'read-pkg-up';
 
-/* eslint-disable @typescript-eslint/consistent-type-imports */
 import { InstallerService } from '~/services/InstallerService';
 
-/* eslint-enable @typescript-eslint/consistent-type-imports */
-
 const isOfficialMode = process.env.OFFICIAL_MODE === 'true';
 
 @Controller('/')

+ 0 - 2
apps/slackbot-proxy/src/middlewares/GlobalHttpErrorHandlingMiddleware.ts

@@ -1,4 +1,3 @@
-/* eslint-disable @typescript-eslint/consistent-type-imports */
 import {
   Err,
   Middleware,
@@ -6,7 +5,6 @@ import {
   PlatformContext,
   PlatformResponse,
 } from '@tsed/common';
-/* eslint-enable @typescript-eslint/consistent-type-imports */
 import type { HttpError } from 'http-errors';
 import { isHttpError } from 'http-errors';
 

+ 0 - 1
apps/slackbot-proxy/src/services/LinkSharedService.ts

@@ -7,7 +7,6 @@ import { Inject, Service } from '@tsed/di';
 import axios from 'axios';
 
 // needed to import class (not type) for injection
-// eslint-disable-next-line @typescript-eslint/consistent-type-imports
 import { RelationRepository } from '~/repositories/relation';
 import loggerFactory from '~/utils/logger';