chore: fix most warnings and ignore a few warnings, because the code quality is too bad

This commit is contained in:
DarkSky
2022-12-23 13:36:39 +08:00
parent 5952e9a2bb
commit 5374d351e2
49 changed files with 128 additions and 145 deletions
+1
View File
@@ -13,6 +13,7 @@ export function isMobile(userAgent: string) {
export const getIsMobile = function () {
return isMobile(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
navigator?.userAgent || navigator?.vendor || (window as any)?.opera
);
};
+1
View File
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
// eslint-disable-next-line @typescript-eslint/ban-types
export function debounce(fn: Function, timeout: number) {
let timeoutId: any;