[build] upgrade eslint to 9.37.0 (#88)

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88
Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org>
Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
This commit is contained in:
Zoë Bijl
2025-10-12 13:42:02 +02:00
committed by tobi
parent 75d7a62693
commit 1ff70886a1
975 changed files with 22196 additions and 21964 deletions
@@ -1,13 +1,13 @@
import { useHovering } from '../../hooks/useHovering';
import type { Account } from '../../types/resources';
import { autoPlayGif } from '../initial_state';
import { useHovering } from "../../hooks/useHovering";
import { type Account } from "../../types/resources";
import { autoPlayGif } from "../initial_state";
interface Props {
account: Account | undefined; // FIXME: remove `undefined` once we know for sure its always there
friend: Account | undefined; // FIXME: remove `undefined` once we know for sure its always there
size?: number;
baseSize?: number;
overlaySize?: number;
account: Account | undefined, // FIXME: remove `undefined` once we know for sure its always there
friend: Account | undefined, // FIXME: remove `undefined` once we know for sure its always there
size?: number,
baseSize?: number,
overlaySize?: number,
}
export const AvatarOverlay: React.FC<Props> = ({
@@ -20,11 +20,11 @@ export const AvatarOverlay: React.FC<Props> = ({
const { hovering, handleMouseEnter, handleMouseLeave } =
useHovering(autoPlayGif);
const accountSrc = hovering
? account?.get('avatar')
: account?.get('avatar_static');
? account?.get("avatar")
: account?.get("avatar_static");
const friendSrc = hovering
? friend?.get('avatar')
: friend?.get('avatar_static');
? friend?.get("avatar")
: friend?.get("avatar_static");
return (
<div
@@ -38,7 +38,7 @@ export const AvatarOverlay: React.FC<Props> = ({
className='account__avatar'
style={{ width: `${baseSize}px`, height: `${baseSize}px` }}
>
{accountSrc && <img src={accountSrc} alt={account?.get('acct')} />}
{accountSrc && <img src={accountSrc} alt={account?.get("acct")} />}
</div>
</div>
<div className='account__avatar-overlay-overlay'>
@@ -46,7 +46,7 @@ export const AvatarOverlay: React.FC<Props> = ({
className='account__avatar'
style={{ width: `${overlaySize}px`, height: `${overlaySize}px` }}
>
{friendSrc && <img src={friendSrc} alt={friend?.get('acct')} />}
{friendSrc && <img src={friendSrc} alt={friend?.get("acct")} />}
</div>
</div>
</div>