Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prune

Manav Rathi1ec67c6bafb4
diff --git a/web/apps/auth/eslint.config.mjs b/web/apps/auth/eslint.config.mjs
index 619424e396..9405448dcf 100644
--- a/web/apps/auth/eslint.config.mjs
+++ b/web/apps/auth/eslint.config.mjs
@@ -16,12 +16,7 @@ export default [
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-argument": "off",
/** TODO: Disabled as we migrate, try to prune these again */
-
- "@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/no-unnecessary-type-assertion": "off",
- "@typescript-eslint/array-type": "off",
- "@typescript-eslint/no-empty-function": "off",
- "@typescript-eslint/no-unnecessary-template-expression": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/prefer-promise-reject-errors": "off",
"@typescript-eslint/no-useless-constructor": "off",
diff --git a/web/apps/auth/src/services/remote.ts b/web/apps/auth/src/services/remote.ts
index 23cf643be8..c8e15d2f1d 100644
--- a/web/apps/auth/src/services/remote.ts
+++ b/web/apps/auth/src/services/remote.ts
@@ -94,6 +94,7 @@ export const getAuthKey = async (): Promise<AuthKey> => {
} catch (e) {
if (
e instanceof ApiError &&
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
e.httpStatusCode == HttpStatusCode.NotFound
) {
throw Error(CustomError.AUTH_KEY_NOT_FOUND);