mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-10 04:22:27 +10:00
fix eslint issues
This commit is contained in:
@ -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
|
||||
|
||||
1
apps/client/src/vite-env.d.ts
vendored
1
apps/client/src/vite-env.d.ts
vendored
@ -1,4 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/consistent-type-definitions */
|
||||
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare const appVersion: string;
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
{
|
||||
"files": ["*.ts", "*.tsx"],
|
||||
"rules": {
|
||||
// @typescript-eslint
|
||||
"@typescript-eslint/no-extraneous-class": "off"
|
||||
}
|
||||
},
|
||||
|
||||
@ -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 } },
|
||||
|
||||
@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user