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,9 +1,9 @@
|
||||
import { Inject, Injectable } from '@nestjs/common';
|
||||
import { Prisma } from '@prisma/client';
|
||||
import { LoggerService, PrismaService } from '@modules/shared';
|
||||
import { type LoggerService, type PrismaService } from '@modules/shared';
|
||||
import {
|
||||
SEARCH_REPOSITORY,
|
||||
ISearchRepository,
|
||||
type ISearchRepository,
|
||||
type ListingDocument,
|
||||
} from '../../domain/repositories/search.repository';
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { Prisma } from '@prisma/client';
|
||||
import { LoggerService, PrismaService } from '@modules/shared';
|
||||
import { type LoggerService, type PrismaService } from '@modules/shared';
|
||||
import {
|
||||
ISearchRepository,
|
||||
type ISearchRepository,
|
||||
type ListingDocument,
|
||||
type SearchParams,
|
||||
type SearchResult,
|
||||
} from '../../domain/repositories/search.repository';
|
||||
import { buildSearchConditions, buildOrderClause } from './search-query-builder';
|
||||
import { RawListingRow, mapRowToListingDocument } from './search-result-mapper';
|
||||
import { type RawListingRow, mapRowToListingDocument } from './search-result-mapper';
|
||||
|
||||
/**
|
||||
* PostgreSQL-backed search repository used as a fallback when Typesense
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Prisma } from '@prisma/client';
|
||||
import { SearchParams } from '../../domain/repositories/search.repository';
|
||||
import { type SearchParams } from '../../domain/repositories/search.repository';
|
||||
import { parseFilterBy } from './search-filter-parser';
|
||||
|
||||
const FTS_COLUMNS = `coalesce(p."title", '') || ' ' || coalesce(p."description", '') || ' ' || coalesce(p."address", '') || ' ' || coalesce(p."district", '') || ' ' || coalesce(p."city", '')`;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ListingDocument } from '../../domain/repositories/search.repository';
|
||||
import { type ListingDocument } from '../../domain/repositories/search.repository';
|
||||
|
||||
export interface RawListingRow {
|
||||
listingId: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Injectable, OnModuleInit } from '@nestjs/common';
|
||||
import { Injectable, type OnModuleInit } from '@nestjs/common';
|
||||
import { Client as TypesenseClient } from 'typesense';
|
||||
import { LoggerService } from '@modules/shared';
|
||||
import { type LoggerService } from '@modules/shared';
|
||||
|
||||
@Injectable()
|
||||
export class TypesenseClientService implements OnModuleInit {
|
||||
|
||||
Reference in New Issue
Block a user