chore: bump oxlint & enable more supported rules (#14769)
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
"nest-commander": "^3.15.0",
|
||||
"nest-winston": "^1.9.7",
|
||||
"nestjs-cls": "^6.0.0",
|
||||
"nodemailer": "^7.0.11",
|
||||
"nodemailer": "^8.0.4",
|
||||
"on-headers": "^1.1.0",
|
||||
"piscina": "^5.1.4",
|
||||
"prisma": "^6.6.0",
|
||||
@@ -100,7 +100,6 @@
|
||||
"reflect-metadata": "^0.2.2",
|
||||
"rxjs": "^7.8.2",
|
||||
"semver": "^7.7.3",
|
||||
"ses": "^1.14.0",
|
||||
"socket.io": "^4.8.1",
|
||||
"stripe": "^17.7.0",
|
||||
"tldts": "^7.0.19",
|
||||
@@ -127,7 +126,6 @@
|
||||
"@types/nodemailer": "^7.0.0",
|
||||
"@types/on-headers": "^1.0.3",
|
||||
"@types/react": "^19.0.1",
|
||||
"@types/react-dom": "^19.0.2",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@types/sinon": "^21.0.0",
|
||||
"@types/supertest": "^7.0.0",
|
||||
|
||||
@@ -247,7 +247,7 @@ class TestGeminiVertexProvider extends GeminiVertexProvider {
|
||||
};
|
||||
}
|
||||
|
||||
// eslint-disable-next-line sonarjs/no-identical-functions
|
||||
// oxlint-disable-next-line sonarjs/no-identical-functions
|
||||
protected override async fetchRemoteAttach(
|
||||
url: string,
|
||||
signal?: AbortSignal
|
||||
|
||||
@@ -8,7 +8,14 @@ import type { Request, Response } from 'express';
|
||||
import { ClsServiceManager } from 'nestjs-cls';
|
||||
import type { Socket } from 'socket.io';
|
||||
|
||||
export function getRequestResponseFromHost(host: ArgumentsHost) {
|
||||
type RequestResponse = {
|
||||
req: Request;
|
||||
res?: Response;
|
||||
};
|
||||
|
||||
export function getRequestResponseFromHost(
|
||||
host: ArgumentsHost
|
||||
): RequestResponse {
|
||||
switch (host.getType<GqlContextType>()) {
|
||||
case 'graphql': {
|
||||
const gqlContext = GqlArgumentsHost.create(host).getContext<{
|
||||
@@ -44,11 +51,13 @@ export function getRequestResponseFromHost(host: ArgumentsHost) {
|
||||
}
|
||||
}
|
||||
|
||||
export function getRequestFromHost(host: ArgumentsHost) {
|
||||
export function getRequestFromHost(host: ArgumentsHost): Request {
|
||||
return getRequestResponseFromHost(host).req;
|
||||
}
|
||||
|
||||
export function getRequestResponseFromContext(ctx: ExecutionContext) {
|
||||
export function getRequestResponseFromContext(
|
||||
ctx: ExecutionContext
|
||||
): RequestResponse {
|
||||
return getRequestResponseFromHost(ctx);
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export class Lock {
|
||||
private release: () => void = () => {};
|
||||
|
||||
async acquire() {
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
// oxlint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
let release: () => void = null!;
|
||||
const nextLock = new Promise<void>(resolve => {
|
||||
release = resolve;
|
||||
|
||||
@@ -820,7 +820,7 @@ export class CalDAVProvider extends CalendarProvider {
|
||||
});
|
||||
}
|
||||
|
||||
// eslint-disable-next-line sonarjs/no-identical-functions
|
||||
// oxlint-disable-next-line sonarjs/no-identical-functions
|
||||
override async exchangeCode(): Promise<any> {
|
||||
throw new GraphqlBadRequest({
|
||||
code: 'caldav_oauth_unsupported',
|
||||
@@ -828,7 +828,7 @@ export class CalDAVProvider extends CalendarProvider {
|
||||
});
|
||||
}
|
||||
|
||||
// eslint-disable-next-line sonarjs/no-identical-functions
|
||||
// oxlint-disable-next-line sonarjs/no-identical-functions
|
||||
override async refreshTokens(): Promise<any> {
|
||||
throw new GraphqlBadRequest({
|
||||
code: 'caldav_oauth_unsupported',
|
||||
@@ -836,7 +836,7 @@ export class CalDAVProvider extends CalendarProvider {
|
||||
});
|
||||
}
|
||||
|
||||
// eslint-disable-next-line sonarjs/no-identical-functions
|
||||
// oxlint-disable-next-line sonarjs/no-identical-functions
|
||||
override async getAccountProfile(): Promise<any> {
|
||||
throw new GraphqlBadRequest({
|
||||
code: 'caldav_oauth_unsupported',
|
||||
|
||||
@@ -344,7 +344,7 @@ export class CopilotTranscriptionResolver {
|
||||
user.id,
|
||||
workspaceId,
|
||||
blobId,
|
||||
// eslint-disable-next-line @typescript-eslint/await-thenable
|
||||
// oxlint-disable-next-line @typescript-eslint/await-thenable
|
||||
await Promise.all(allBlobs),
|
||||
input ?? undefined
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user