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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 => {