chore: upgrade TypeScript 4.9 to 5.9, ESLint 8.29 to 8.57, @typescript-eslint 5 to 7

Resolves all TS2345/TS2347/TS7006 type errors introduced by stricter TypeScript 5.x.
Fix Icons.Settings to Icons.Setting, cast account data returns, fix implicit any.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lotus Bot
2026-05-22 11:16:11 -04:00
parent e547248681
commit 266e47f240
33 changed files with 389 additions and 334 deletions
@@ -77,7 +77,7 @@ export function CompactUploadCardRenderer({
{upload.status === UploadStatus.Success ? (
<>
<Text size="H6" truncate>
{file.name}
{(file as File).name}
</Text>
<Icon style={{ color: color.Success.Main }} src={Icons.Check} size="100" />
</>
@@ -28,7 +28,7 @@ function PreviewImage({ fileItem }: PreviewImageProps) {
height: toRem(152),
filter: metadata.markedAsSpoiler ? 'blur(44px)' : undefined,
}}
alt={originalFile.name}
alt={(originalFile as File).name}
src={fileUrl}
/>
);
@@ -227,7 +227,7 @@ export function UploadCardRenderer({
}
>
<Text size="H6" truncate>
{file.name}
{(file as File).name}
</Text>
{upload.status === UploadStatus.Success && (
<Icon style={{ color: color.Success.Main }} src={Icons.Check} size="100" />