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,27 +1,17 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { CqrsModule } from '@nestjs/cqrs';
|
||||
|
||||
// Domain
|
||||
import { PAYMENT_REPOSITORY } from './domain/repositories/payment.repository';
|
||||
|
||||
// Infrastructure
|
||||
import { PrismaPaymentRepository } from './infrastructure/repositories/prisma-payment.repository';
|
||||
import { PAYMENT_GATEWAY_FACTORY } from './infrastructure/services/payment-gateway.interface';
|
||||
import { PaymentGatewayFactory } from './infrastructure/services/payment-gateway.factory';
|
||||
import { VnpayService } from './infrastructure/services/vnpay.service';
|
||||
import { MomoService } from './infrastructure/services/momo.service';
|
||||
import { ZalopayService } from './infrastructure/services/zalopay.service';
|
||||
|
||||
// Application — Commands
|
||||
import { CreatePaymentHandler } from './application/commands/create-payment/create-payment.handler';
|
||||
import { HandleCallbackHandler } from './application/commands/handle-callback/handle-callback.handler';
|
||||
import { RefundPaymentHandler } from './application/commands/refund-payment/refund-payment.handler';
|
||||
|
||||
// Application — Queries
|
||||
import { GetPaymentStatusHandler } from './application/queries/get-payment-status/get-payment-status.handler';
|
||||
import { ListTransactionsHandler } from './application/queries/list-transactions/list-transactions.handler';
|
||||
|
||||
// Presentation
|
||||
import { PAYMENT_REPOSITORY } from './domain/repositories/payment.repository';
|
||||
import { PrismaPaymentRepository } from './infrastructure/repositories/prisma-payment.repository';
|
||||
import { MomoService } from './infrastructure/services/momo.service';
|
||||
import { PaymentGatewayFactory } from './infrastructure/services/payment-gateway.factory';
|
||||
import { PAYMENT_GATEWAY_FACTORY } from './infrastructure/services/payment-gateway.interface';
|
||||
import { VnpayService } from './infrastructure/services/vnpay.service';
|
||||
import { ZalopayService } from './infrastructure/services/zalopay.service';
|
||||
import { PaymentsController } from './presentation/controllers/payments.controller';
|
||||
|
||||
const CommandHandlers = [
|
||||
|
||||
Reference in New Issue
Block a user