This commit is contained in:
Manav Rathi
2024-11-20 10:29:19 +05:30
parent 0fca6728cd
commit c6fd49bff5
3 changed files with 2 additions and 4 deletions

View File

@@ -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",

View File

@@ -113,7 +113,7 @@ export const AlbumCastDialog: React.FC<AlbumCastDialogProps> = ({
setView("choose");
onClose();
})
.catch((e) => {
.catch((e: unknown) => {
log.error("Error casting to TV", e);
setView("auto-cast-error");
});

View File

@@ -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,