Upgrade our eslint config to the latest (#24647)

* Fix lint error in test-utils.ts

* Upgrade eslint config (and separate projects to support it)

* Handle possibility that req.error could be null
This commit is contained in:
Andy Balaam
2023-03-01 14:44:03 +00:00
committed by GitHub
parent 460f3d2a22
commit 3903e86d9c
5 changed files with 106 additions and 25 deletions

View File

@@ -34,7 +34,7 @@ export function deleteIndexedDB(dbName: string): Promise<void> {
};
req.onerror = (ev): void => {
reject(new Error(`${Date.now()}: unable to delete indexeddb ${dbName}: ${req.error}`));
reject(new Error(`${Date.now()}: unable to delete indexeddb ${dbName}: ${req.error?.message}`));
};
req.onsuccess = (): void => {