fix(lint): enforce consistent-type-imports and fix import ordering across codebase
Auto-fix 862 lint errors: convert value imports used only as types to `import type`, fix import group ordering in seed.ts and du-an-api.ts, remove unused imports in auth controller, and clean up stale eslint-disable comments referencing non-existent rules. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { InjectMetric } from '@willsoto/nestjs-prometheus';
|
||||
import { Counter, Gauge, Histogram } from 'prom-client';
|
||||
import { type Counter, type Gauge, type Histogram } from 'prom-client';
|
||||
import {
|
||||
GOODGO_LISTINGS_CREATED_TOTAL,
|
||||
GOODGO_PAYMENTS_PROCESSED_TOTAL,
|
||||
|
||||
@@ -7,8 +7,8 @@ import {
|
||||
Logger,
|
||||
} from '@nestjs/common';
|
||||
import { ApiTags, ApiOperation, ApiResponse } from '@nestjs/swagger';
|
||||
import { MetricsService } from '../../infrastructure/metrics.service';
|
||||
import { WebVitalsBatchDto } from '../dto/web-vitals.dto';
|
||||
import { type MetricsService } from '../../infrastructure/metrics.service';
|
||||
import { type WebVitalsBatchDto } from '../dto/web-vitals.dto';
|
||||
|
||||
/**
|
||||
* Public endpoint for receiving Core Web Vitals from the frontend.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {
|
||||
Injectable,
|
||||
CallHandler,
|
||||
type CallHandler,
|
||||
type ExecutionContext,
|
||||
NestInterceptor,
|
||||
type NestInterceptor,
|
||||
} from '@nestjs/common';
|
||||
import { Request, Response } from 'express';
|
||||
import { Observable, tap } from 'rxjs';
|
||||
import { type Request, type Response } from 'express';
|
||||
import { type Observable, tap } from 'rxjs';
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
||||
import { MetricsService } from '../../infrastructure/metrics.service';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user