Migrate to oxlint + oxfmt
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user