fix(lint): resolve all 49 lint warnings and errors across codebase
- Remove unused imports/variables in seed scripts and test files - Replace console.log with console.warn in seed/utility scripts - Replace `as any` with proper Prisma types (InputJsonValue, PaymentStatus, Plan, UserWhereInput) - Fix import-x/no-named-as-default-member warnings in logger, mapbox, eslint config - Prefix unused callback params with underscore in e2e tests Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { type User as PrismaUser } from '@prisma/client';
|
||||
import { type Prisma, type User as PrismaUser } from '@prisma/client';
|
||||
import { type PrismaService } from '@modules/shared/infrastructure/prisma.service';
|
||||
import { UserEntity, type UserProps } from '../../domain/entities/user.entity';
|
||||
import { type IUserRepository } from '../../domain/repositories/user.repository';
|
||||
@@ -37,7 +37,7 @@ export class PrismaUserRepository implements IUserRepository {
|
||||
avatarUrl: entity.avatarUrl,
|
||||
role: entity.role,
|
||||
kycStatus: entity.kycStatus,
|
||||
kycData: entity.kycData as any,
|
||||
kycData: entity.kycData as Prisma.InputJsonValue,
|
||||
isActive: entity.isActive,
|
||||
},
|
||||
});
|
||||
@@ -54,7 +54,7 @@ export class PrismaUserRepository implements IUserRepository {
|
||||
avatarUrl: entity.avatarUrl,
|
||||
role: entity.role,
|
||||
kycStatus: entity.kycStatus,
|
||||
kycData: entity.kycData as any,
|
||||
kycData: entity.kycData as Prisma.InputJsonValue,
|
||||
isActive: entity.isActive,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user