fix eslint issues

This commit is contained in:
Amruth Pillai
2024-05-07 12:02:39 +02:00
parent e3785030e1
commit 52e062c0b5
5 changed files with 7 additions and 4 deletions

View File

@ -63,13 +63,14 @@
// typescript-eslint
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/return-await": "error",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
// unicorn

View File

@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/consistent-type-definitions */
/// <reference types="vite/client" />
declare const appVersion: string;

View File

@ -9,6 +9,7 @@
{
"files": ["*.ts", "*.tsx"],
"rules": {
// @typescript-eslint
"@typescript-eslint/no-extraneous-class": "off"
}
},

View File

@ -126,7 +126,7 @@ export class ResumeService {
}
}
async lock(userId: string, id: string, set: boolean) {
lock(userId: string, id: string, set: boolean) {
return this.prisma.resume.update({
data: { locked: set },
where: { userId_id: { userId, id } },

View File

@ -69,11 +69,11 @@ export class UserService {
return user;
}
async create(data: Prisma.UserCreateInput) {
create(data: Prisma.UserCreateInput) {
return this.prisma.user.create({ data, include: { secrets: true } });
}
async updateByEmail(email: string, data: Prisma.UserUpdateArgs["data"]) {
updateByEmail(email: string, data: Prisma.UserUpdateArgs["data"]) {
return this.prisma.user.update({ where: { email }, data });
}