chore(deps): update dependency eslint-plugin-unicorn to v70 - abandoned (#29684)

* chore(deps): update dependency eslint-plugin-unicorn to v70

* fix: linting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
renovate[bot]
2026-07-20 23:47:14 -04:00
committed by GitHub
co-authored by renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Daniel Dietzler
parent 8061a2e5ff
commit df970da59e
266 changed files with 1260 additions and 1212 deletions
+5 -3
View File
@@ -1,3 +1,4 @@
/* eslint-disable unicorn/no-this-outside-of-class */
import { createPostgres, DatabaseConnectionParams } from '@immich/sql-tools';
import { CallHandler, ExecutionContext, Provider } from '@nestjs/common';
import { APP_FILTER, APP_GUARD, APP_INTERCEPTOR, APP_PIPE } from '@nestjs/core';
@@ -107,6 +108,7 @@ export const controllerSetup = async (controller: new (...args: any[]) => unknow
await new Promise<void>((resolve, reject) => {
const next: NextFunction = (error) => (error ? reject(transformException(error)) : resolve());
const maybePromise = handler(context.getRequest(), context.getResponse(), next);
Promise.resolve(maybePromise).catch((error) => reject(error));
});
@@ -176,7 +178,7 @@ export const automock = <T>(
},
): AutoMocked<T> => {
const mock: Record<string, unknown> = {};
const strict = options?.strict ?? true;
const isStrict = options?.strict ?? true;
const args = options?.args ?? [];
const mocks: Mock[] = [];
@@ -197,7 +199,7 @@ export const automock = <T>(
const target = instance[property as keyof T];
if (typeof target === 'function') {
const mockImplementation = mockFn(label, { strict });
const mockImplementation = mockFn(label, { strict: isStrict });
mock[property] = mockImplementation;
mocks.push(mockImplementation);
continue;
@@ -454,7 +456,7 @@ const pngFactory = newPngFactory();
const templateName = 'mich';
const withDatabase = (url: string, name: string) => url.replace(`/${templateName}`, `/${name}`);
const withDatabase = (url: string, name: string) => url.replace(`/${templateName}`, () => `/${name}`);
export const getKyselyDB = async (suffix?: string): Promise<Kysely<DB>> => {
const testUrl = process.env.IMMICH_TEST_POSTGRES_URL!;