Migrate to oxlint + oxfmt

This commit is contained in:
schroda
2026-03-10 22:28:19 +01:00
parent 98622ad6cd
commit 5dda4304d9
40 changed files with 1232 additions and 1315 deletions

View File

@@ -13,6 +13,6 @@ export const defaultPromiseErrorHandler =
return;
}
// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.error(`${name} failed due to`, error);
};

View File

@@ -30,7 +30,7 @@ export const importDayJsLocale = async (locale: string): Promise<DayJsLocale> =>
const dayjsLocale = getDayJsLocale(locale);
try {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
// oxlint-disable-next-line no-use-before-define
await localesToImport[dayjsLocale]();
} catch (e) {
// ignore - dayjs falls back to "en" by default

View File

@@ -103,7 +103,7 @@ export abstract class BaseClient<Client, ClientConfig, Fetcher> {
return SubpathUtil.getApiBaseUrl(serverBaseURL);
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
protected shouldQueueRequest(operationName?: string): boolean {
return AuthManager.shouldQueueRequests();
}

View File

@@ -6,7 +6,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
/* eslint-disable max-classes-per-file */
/* oxlint-disable max-classes-per-file */
import { jsonSaveParse } from '@/lib/HelperFunctions.ts';
export class Storage {