From c6fd49bff5ffe276cd23883fbc4d02bc4f00c4a8 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Wed, 20 Nov 2024 10:29:19 +0530 Subject: [PATCH] Prune --- web/apps/photos/eslint.config.mjs | 2 -- web/apps/photos/src/components/Collections/AlbumCastDialog.tsx | 2 +- web/apps/photos/src/components/Upload/Uploader.tsx | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/web/apps/photos/eslint.config.mjs b/web/apps/photos/eslint.config.mjs index 80cc68e5b9..afb5066ea3 100644 --- a/web/apps/photos/eslint.config.mjs +++ b/web/apps/photos/eslint.config.mjs @@ -27,12 +27,10 @@ export default [ "@typescript-eslint/prefer-promise-reject-errors": "off", "@typescript-eslint/no-useless-constructor": "off", "@typescript-eslint/require-await": "off", - "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/no-misused-promises": "off", "@typescript-eslint/restrict-template-expressions": "off", "@typescript-eslint/no-inferrable-types": "off", "@typescript-eslint/no-base-to-string": "off", - "@typescript-eslint/use-unknown-in-catch-callback-variable": "off", "@typescript-eslint/restrict-plus-operands": "off", "@typescript-eslint/no-unused-expressions": "off", "react-hooks/exhaustive-deps": "off", diff --git a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx index 68feb8add9..6f1cb4a51e 100644 --- a/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx +++ b/web/apps/photos/src/components/Collections/AlbumCastDialog.tsx @@ -113,7 +113,7 @@ export const AlbumCastDialog: React.FC = ({ setView("choose"); onClose(); }) - .catch((e) => { + .catch((e: unknown) => { log.error("Error casting to TV", e); setView("auto-cast-error"); }); diff --git a/web/apps/photos/src/components/Upload/Uploader.tsx b/web/apps/photos/src/components/Upload/Uploader.tsx index 684cdb516a..f8cce68fa4 100644 --- a/web/apps/photos/src/components/Upload/Uploader.tsx +++ b/web/apps/photos/src/components/Upload/Uploader.tsx @@ -263,7 +263,7 @@ export default function Uploader({ }; const requestSyncWithRemote = () => { - props.syncWithRemote().catch((e) => { + props.syncWithRemote().catch((e: unknown) => { log.error( "Ignoring error when syncing trash changes with remote", e,