Update typescript-eslint monorepo to v8 (major) (#2523)

* Update typescript-eslint monorepo to v8

* es lint fixes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Timo <toger5@hotmail.de>
This commit is contained in:
renovate[bot]
2024-09-03 17:14:27 +02:00
committed by GitHub
parent 1784cb284c
commit c2cc0937c1
11 changed files with 82 additions and 96 deletions

View File

@@ -505,7 +505,9 @@ function tryInitStorage(): Promise<void> {
let indexedDB;
try {
indexedDB = window.indexedDB;
} catch (e) {}
} catch (e) {
logger.warn("Could not get indexDB from window.", e);
}
if (indexedDB) {
global.mx_rage_store = new IndexedDBLogStore(

View File

@@ -30,7 +30,10 @@ export class Setting<T> {
try {
initialValue = JSON.parse(storedValue);
} catch (e) {
logger.warn(`Invalid value stored for setting ${key}: ${storedValue}`);
logger.warn(
`Invalid value stored for setting ${key}: ${storedValue}.`,
e,
);
}
}

View File

@@ -85,7 +85,9 @@ export function useSubmitRageshake(): {
try {
// MDN claims broad support across browsers
touchInput = String(window.matchMedia("(pointer: coarse)").matches);
} catch (e) {}
} catch (e) {
logger.warn("Could not get coarse pointer for rageshake submit.", e);
}
let description = opts.rageshakeRequestId
? `Rageshake ${opts.rageshakeRequestId}`
@@ -216,7 +218,9 @@ export function useSubmitRageshake(): {
"storageManager_persisted",
String(await navigator.storage.persisted()),
);
} catch (e) {}
} catch (e) {
logger.warn("coulr not get navigator peristed storage", e);
}
} else if (document.hasStorageAccess) {
// Safari
try {
@@ -224,7 +228,9 @@ export function useSubmitRageshake(): {
"storageManager_persisted",
String(await document.hasStorageAccess()),
);
} catch (e) {}
} catch (e) {
logger.warn("could not get storage access", e);
}
}
if (navigator.storage && navigator.storage.estimate) {
@@ -244,7 +250,9 @@ export function useSubmitRageshake(): {
);
});
}
} catch (e) {}
} catch (e) {
logger.warn("could not obatain storage estimate", e);
}
}
if (opts.sendLogs) {