fix: production readiness — resolve build, lint, and code quality issues
- Fix Next.js build failure: remove duplicate route at (dashboard)/listings/[id] that conflicted with (public)/listings/[id] (same URL path in two route groups) - Fix 772 ESLint errors: auto-fix import ordering (import-x/order), remove unused imports/variables, convert empty interfaces to type aliases, replace require() with ESM imports, fix consistent-type-imports violations - Add CLAUDE.md for developer onboarding documentation - All checks pass: 0 lint errors, typecheck clean, 230 tests passing, build success Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { type ISearchRepository, type SearchResult } from '../../domain/repositories/search.repository';
|
||||
import { GeoSearchHandler } from '../queries/geo-search/geo-search.handler';
|
||||
import { GeoSearchQuery } from '../queries/geo-search/geo-search.query';
|
||||
import { type ISearchRepository, type SearchResult } from '../../domain/repositories/search.repository';
|
||||
|
||||
function createMockSearchResult(overrides?: Partial<SearchResult>): SearchResult {
|
||||
return {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { type CacheService } from '@modules/shared/infrastructure/cache.service';
|
||||
import { type ISearchRepository, type SearchResult } from '../../domain/repositories/search.repository';
|
||||
import { SearchPropertiesHandler } from '../queries/search-properties/search-properties.handler';
|
||||
import { SearchPropertiesQuery } from '../queries/search-properties/search-properties.query';
|
||||
import { type ISearchRepository, type SearchResult } from '../../domain/repositories/search.repository';
|
||||
import { type CacheService } from '@modules/shared/infrastructure/cache.service';
|
||||
|
||||
function createMockSearchResult(overrides?: Partial<SearchResult>): SearchResult {
|
||||
return {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SyncListingHandler } from '../commands/sync-listing/sync-listing.handler';
|
||||
import { SyncListingCommand } from '../commands/sync-listing/sync-listing.command';
|
||||
import { SyncListingHandler } from '../commands/sync-listing/sync-listing.handler';
|
||||
|
||||
describe('SyncListingHandler', () => {
|
||||
let handler: SyncListingHandler;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CommandHandler, type ICommandHandler } from '@nestjs/cqrs';
|
||||
import { type ListingIndexerService } from '../../../infrastructure/services/listing-indexer.service';
|
||||
import { ReindexAllCommand } from './reindex-all.command';
|
||||
import { ListingIndexerService } from '../../../infrastructure/services/listing-indexer.service';
|
||||
|
||||
export interface ReindexResult {
|
||||
indexed: number;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { CommandHandler, type ICommandHandler } from '@nestjs/cqrs';
|
||||
import { type ListingIndexerService } from '../../../infrastructure/services/listing-indexer.service';
|
||||
import { SyncListingCommand } from './sync-listing.command';
|
||||
import { ListingIndexerService } from '../../../infrastructure/services/listing-indexer.service';
|
||||
|
||||
@CommandHandler(SyncListingCommand)
|
||||
export class SyncListingHandler implements ICommandHandler<SyncListingCommand> {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { type IQueryHandler, QueryHandler } from '@nestjs/cqrs';
|
||||
import { Inject } from '@nestjs/common';
|
||||
import { GeoSearchQuery } from './geo-search.query';
|
||||
import { type IQueryHandler, QueryHandler } from '@nestjs/cqrs';
|
||||
import {
|
||||
SEARCH_REPOSITORY,
|
||||
type ISearchRepository,
|
||||
type SearchResult,
|
||||
} from '../../../domain/repositories/search.repository';
|
||||
import { GeoSearchQuery } from './geo-search.query';
|
||||
|
||||
@QueryHandler(GeoSearchQuery)
|
||||
export class GeoSearchHandler implements IQueryHandler<GeoSearchQuery> {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { type IQueryHandler, QueryHandler } from '@nestjs/cqrs';
|
||||
import { Inject } from '@nestjs/common';
|
||||
import { type IQueryHandler, QueryHandler } from '@nestjs/cqrs';
|
||||
import { CacheService, CachePrefix, CacheTTL } from '@modules/shared/infrastructure/cache.service';
|
||||
import { SearchPropertiesQuery } from './search-properties.query';
|
||||
import {
|
||||
SEARCH_REPOSITORY,
|
||||
type ISearchRepository,
|
||||
type SearchResult,
|
||||
} from '../../../domain/repositories/search.repository';
|
||||
import { SearchPropertiesQuery } from './search-properties.query';
|
||||
|
||||
@QueryHandler(SearchPropertiesQuery)
|
||||
export class SearchPropertiesHandler implements IQueryHandler<SearchPropertiesQuery> {
|
||||
|
||||
Reference in New Issue
Block a user