chore: upgrade eslint and prettier (#2376)

* chore: upgrade eslint and prettier

* chore: add restrict-template-expressions
This commit is contained in:
Mo
2023-07-27 14:36:05 -05:00
committed by GitHub
parent acc41edb02
commit 4a29e2a24c
1283 changed files with 4416 additions and 5131 deletions

View File

@@ -66,7 +66,7 @@ export class ReuploadAllInvites implements UseCaseInterface<void> {
const response = await this.inviteServer.getOutboundUserInvites()
if (isErrorResponse(response)) {
return Result.fail(`Failed to get outbound user invites ${response}`)
return Result.fail(`Failed to get outbound user invites ${JSON.stringify(response)}`)
}
const invites = response.data.invites
@@ -78,7 +78,7 @@ export class ReuploadAllInvites implements UseCaseInterface<void> {
const response = await this.inviteServer.deleteAllOutboundInvites()
if (isErrorResponse(response)) {
return Result.fail(`Failed to delete existing invites ${response}`)
return Result.fail(`Failed to delete existing invites ${JSON.stringify(response)}`)
}
return Result.ok()

View File

@@ -64,7 +64,7 @@ export class ReuploadVaultInvites implements UseCaseInterface<void> {
const response = await this.inviteServer.getOutboundUserInvites()
if (isErrorResponse(response)) {
return Result.fail(`Failed to get outbound user invites ${response}`)
return Result.fail(`Failed to get outbound user invites ${JSON.stringify(response)}`)
}
const invites = response.data.invites
@@ -78,7 +78,7 @@ export class ReuploadVaultInvites implements UseCaseInterface<void> {
})
if (isErrorResponse(response)) {
return Result.fail(`Failed to delete existing invites ${response}`)
return Result.fail(`Failed to delete existing invites ${JSON.stringify(response)}`)
}
return Result.ok()

View File

@@ -109,7 +109,7 @@ export class VaultInviteService
const response = await this.invitesServer.getInboundUserInvites()
if (isErrorResponse(response)) {
return ClientDisplayableError.FromString(`Failed to get inbound user invites ${response}`)
return ClientDisplayableError.FromString(`Failed to get inbound user invites ${JSON.stringify(response)}`)
}
this.pendingInvites = {}
@@ -125,7 +125,7 @@ export class VaultInviteService
const response = await this.invitesServer.getOutboundUserInvites()
if (isErrorResponse(response)) {
return ClientDisplayableError.FromString(`Failed to get outbound user invites ${response}`)
return ClientDisplayableError.FromString(`Failed to get outbound user invites ${JSON.stringify(response)}`)
}
if (sharedVault) {
@@ -220,7 +220,7 @@ export class VaultInviteService
})
if (isErrorResponse(response)) {
return ClientDisplayableError.FromString(`Failed to delete invite ${response}`)
return ClientDisplayableError.FromString(`Failed to delete invite ${JSON.stringify(response)}`)
}
delete this.pendingInvites[invite.uuid]