[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
+14 -14
View File
@@ -1,15 +1,15 @@
import classNames from 'classnames';
import classNames from "classnames";
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
size: number;
style?: React.CSSProperties;
inline?: boolean;
animate?: boolean;
account: Account | undefined, // FIXME: remove `undefined` once we know for sure its always there
size: number,
style?: React.CSSProperties,
inline?: boolean,
animate?: boolean,
}
export const Avatar: React.FC<Props> = ({
@@ -29,19 +29,19 @@ export const Avatar: React.FC<Props> = ({
const src =
hovering || animate
? account?.get('avatar')
: account?.get('avatar_static');
? account?.get("avatar")
: account?.get("avatar_static");
return (
<div
className={classNames('account__avatar', {
'account__avatar-inline': inline,
className={classNames("account__avatar", {
"account__avatar-inline": inline,
})}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
style={style}
>
{src && <img src={src} alt={account?.get('acct')} />}
{src && <img src={src} alt={account?.get("acct")} />}
</div>
);
};