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,10 +1,10 @@
|
||||
import { HttpStatus } from '@nestjs/common';
|
||||
import { EscrowStatus } from '@prisma/client';
|
||||
import { type EscrowStatus } from '@prisma/client';
|
||||
import { AggregateRoot, DomainException, ErrorCode, Result } from '@modules/shared';
|
||||
import { EscrowDisputedEvent } from '../events/escrow-disputed.event';
|
||||
import { EscrowHeldEvent } from '../events/escrow-held.event';
|
||||
import { EscrowReleasedEvent } from '../events/escrow-released.event';
|
||||
import { Money } from '../value-objects/money.vo';
|
||||
import { type Money } from '../value-objects/money.vo';
|
||||
|
||||
export interface EscrowProps {
|
||||
orderId: string;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { HttpStatus } from '@nestjs/common';
|
||||
import { OrderStatus } from '@prisma/client';
|
||||
import { type OrderStatus } from '@prisma/client';
|
||||
import { AggregateRoot, DomainException, ErrorCode, Result } from '@modules/shared';
|
||||
import { OrderCancelledEvent } from '../events/order-cancelled.event';
|
||||
import { OrderCreatedEvent } from '../events/order-created.event';
|
||||
import { OrderPaidEvent } from '../events/order-paid.event';
|
||||
import { Money } from '../value-objects/money.vo';
|
||||
import { PlatformFee } from '../value-objects/platform-fee.vo';
|
||||
import { type Money } from '../value-objects/money.vo';
|
||||
import { type PlatformFee } from '../value-objects/platform-fee.vo';
|
||||
|
||||
export interface OrderProps {
|
||||
buyerId: string;
|
||||
|
||||
@@ -9,7 +9,7 @@ import { PaymentCompletedEvent } from '../events/payment-completed.event';
|
||||
import { PaymentCreatedEvent } from '../events/payment-created.event';
|
||||
import { PaymentFailedEvent } from '../events/payment-failed.event';
|
||||
import { PaymentRefundedEvent } from '../events/payment-refunded.event';
|
||||
import { Money } from '../value-objects/money.vo';
|
||||
import { type Money } from '../value-objects/money.vo';
|
||||
|
||||
export interface PaymentProps {
|
||||
userId: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DomainEvent } from '@modules/shared';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class EscrowDisputedEvent implements DomainEvent {
|
||||
readonly eventName = 'escrow.disputed';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DomainEvent } from '@modules/shared';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class EscrowHeldEvent implements DomainEvent {
|
||||
readonly eventName = 'escrow.held';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DomainEvent } from '@modules/shared';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class EscrowReleasedEvent implements DomainEvent {
|
||||
readonly eventName = 'escrow.released';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DomainEvent } from '@modules/shared';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class OrderCancelledEvent implements DomainEvent {
|
||||
readonly eventName = 'order.cancelled';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DomainEvent } from '@modules/shared';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class OrderCreatedEvent implements DomainEvent {
|
||||
readonly eventName = 'order.created';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DomainEvent } from '@modules/shared';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class OrderPaidEvent implements DomainEvent {
|
||||
readonly eventName = 'order.paid';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PaymentProvider } from '@prisma/client';
|
||||
import { DomainEvent } from '@modules/shared';
|
||||
import { type PaymentProvider } from '@prisma/client';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class PaymentCompletedEvent implements DomainEvent {
|
||||
readonly eventName = 'payment.completed';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PaymentProvider, PaymentType } from '@prisma/client';
|
||||
import { DomainEvent } from '@modules/shared';
|
||||
import { type PaymentProvider, type PaymentType } from '@prisma/client';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class PaymentCreatedEvent implements DomainEvent {
|
||||
readonly eventName = 'payment.created';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PaymentProvider } from '@prisma/client';
|
||||
import { DomainEvent } from '@modules/shared';
|
||||
import { type PaymentProvider } from '@prisma/client';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class PaymentFailedEvent implements DomainEvent {
|
||||
readonly eventName = 'payment.failed';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PaymentProvider } from '@prisma/client';
|
||||
import { DomainEvent } from '@modules/shared';
|
||||
import { type PaymentProvider } from '@prisma/client';
|
||||
import { type DomainEvent } from '@modules/shared';
|
||||
|
||||
export class PaymentRefundedEvent implements DomainEvent {
|
||||
readonly eventName = 'payment.refunded';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { EscrowEntity } from '../entities/escrow.entity';
|
||||
import { type EscrowEntity } from '../entities/escrow.entity';
|
||||
|
||||
export const ESCROW_REPOSITORY = Symbol('ESCROW_REPOSITORY');
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { OrderStatus } from '@prisma/client';
|
||||
import { OrderEntity } from '../entities/order.entity';
|
||||
import { type OrderStatus } from '@prisma/client';
|
||||
import { type OrderEntity } from '../entities/order.entity';
|
||||
|
||||
export const ORDER_REPOSITORY = Symbol('ORDER_REPOSITORY');
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PaymentStatus } from '@prisma/client';
|
||||
import { PaymentEntity } from '../entities/payment.entity';
|
||||
import { type PaymentStatus } from '@prisma/client';
|
||||
import { type PaymentEntity } from '../entities/payment.entity';
|
||||
|
||||
export const PAYMENT_REPOSITORY = Symbol('PAYMENT_REPOSITORY');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user