fix: resolve 21 lint errors from GDPR/logger/caching commits and fix web lint

- Fix import ordering in auth DTOs, admin module, and test files
- Merge duplicate @modules/shared imports (no-duplicates with prefer-inline)
- Remove unused imports (ForceDeleteUserCommand, Inject)
- Use parameterless catch for unused error bindings
- Switch web lint from `next lint` to `eslint` (flat config compatibility)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-10 18:00:37 +07:00
parent ab478a565a
commit 4c432c7ff9
13 changed files with 13 additions and 21 deletions

View File

@@ -1,6 +1,4 @@
import { ProcessScheduledDeletionsCommand } from '../commands/process-scheduled-deletions/process-scheduled-deletions.command';
import { ProcessScheduledDeletionsHandler } from '../commands/process-scheduled-deletions/process-scheduled-deletions.handler';
import { ForceDeleteUserCommand } from '../commands/force-delete-user/force-delete-user.command';
describe('ProcessScheduledDeletionsHandler', () => {
let handler: ProcessScheduledDeletionsHandler;

View File

@@ -1,6 +1,5 @@
import { CommandHandler, type ICommandHandler } from '@nestjs/cqrs';
import { type LoggerService, type PrismaService } from '@modules/shared';
import { NotFoundException, ValidationException } from '@modules/shared';
import { type LoggerService, type PrismaService, NotFoundException, ValidationException } from '@modules/shared';
import { CancelUserDeletionCommand } from './cancel-user-deletion.command';
@CommandHandler(CancelUserDeletionCommand)

View File

@@ -1,6 +1,5 @@
import { CommandHandler, type ICommandHandler } from '@nestjs/cqrs';
import { type LoggerService, type PrismaService } from '@modules/shared';
import { NotFoundException } from '@modules/shared';
import { type LoggerService, type PrismaService, NotFoundException } from '@modules/shared';
import { ExportUserDataCommand } from './export-user-data.command';
export interface UserDataExport {

View File

@@ -1,7 +1,6 @@
import { CommandHandler, type ICommandHandler } from '@nestjs/cqrs';
import { Prisma } from '@prisma/client';
import { type LoggerService, type PrismaService } from '@modules/shared';
import { NotFoundException } from '@modules/shared';
import { type LoggerService, type PrismaService, NotFoundException } from '@modules/shared';
import { ForceDeleteUserCommand } from './force-delete-user.command';
@CommandHandler(ForceDeleteUserCommand)

View File

@@ -1,7 +1,5 @@
import { Inject } from '@nestjs/common';
import { CommandHandler, type ICommandHandler } from '@nestjs/cqrs';
import { type LoggerService, type PrismaService } from '@modules/shared';
import { NotFoundException, ValidationException } from '@modules/shared';
import { type LoggerService, type PrismaService, NotFoundException, ValidationException } from '@modules/shared';
import { RequestUserDeletionCommand } from './request-user-deletion.command';
const DELETION_GRACE_PERIOD_DAYS = 30;