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:
Ho Ngoc Hai
2026-04-16 05:13:56 +07:00
parent 86adcf7295
commit c920934fb6
296 changed files with 692 additions and 659 deletions

View File

@@ -1,11 +1,11 @@
import { UserRole, type KYCStatus } from '@prisma/client';
import { type UserRole, type KYCStatus } from '@prisma/client';
import { AggregateRoot } from '@modules/shared';
import { UserDeactivatedEvent } from '../events/user-deactivated.event';
import { UserKycUpdatedEvent } from '../events/user-kyc-updated.event';
import { UserRegisteredEvent } from '../events/user-registered.event';
import { Email } from '../value-objects/email.vo';
import { HashedPassword } from '../value-objects/hashed-password.vo';
import { Phone } from '../value-objects/phone.vo';
import { type Email } from '../value-objects/email.vo';
import { type HashedPassword } from '../value-objects/hashed-password.vo';
import { type Phone } from '../value-objects/phone.vo';
export interface UserProps {
email: Email | null;

View File

@@ -1,4 +1,4 @@
import { DomainEvent } from '@modules/shared';
import { type DomainEvent } from '@modules/shared';
export class AgentVerifiedEvent implements DomainEvent {
readonly eventName = 'agent.verified';

View File

@@ -1,4 +1,4 @@
import { DomainEvent } from '@modules/shared';
import { type DomainEvent } from '@modules/shared';
export class EmailChangeRequestedEvent implements DomainEvent {
readonly eventName = 'user.email_change_requested';

View File

@@ -1,4 +1,4 @@
import { DomainEvent } from '@modules/shared';
import { type DomainEvent } from '@modules/shared';
export class UserDeactivatedEvent implements DomainEvent {
readonly eventName = 'user.deactivated';

View File

@@ -1,5 +1,5 @@
import { type KYCStatus } from '@prisma/client';
import { DomainEvent } from '@modules/shared';
import { type DomainEvent } from '@modules/shared';
export class UserKycUpdatedEvent implements DomainEvent {
readonly eventName = 'user.kyc_updated';

View File

@@ -1,5 +1,5 @@
import { UserRole } from '@prisma/client';
import { DomainEvent } from '@modules/shared';
import { type UserRole } from '@prisma/client';
import { type DomainEvent } from '@modules/shared';
export class UserRegisteredEvent implements DomainEvent {
readonly eventName = 'user.registered';

View File

@@ -1,4 +1,4 @@
import { UserEntity } from '../entities/user.entity';
import { type UserEntity } from '../entities/user.entity';
export const USER_REPOSITORY = Symbol('USER_REPOSITORY');