[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
@@ -3,22 +3,22 @@
@typescript-eslint/no-unsafe-assignment,
@typescript-eslint/no-unsafe-member-access
-- the settings store is not yet typed */
import { useCallback } from 'react';
import { useCallback } from "react";
import { FormattedMessage } from 'react-intl';
import { FormattedMessage } from "react-intl";
import { useAppSelector, useAppDispatch } from 'mastodon/store';
import { useAppSelector, useAppDispatch } from "mastodon/store";
import { changeSetting } from '../../../actions/settings';
import SettingToggle from '../../notifications/components/setting_toggle';
import { changeSetting } from "../../../actions/settings";
import SettingToggle from "../../notifications/components/setting_toggle";
export const ColumnSettings: React.FC = () => {
const settings = useAppSelector((state) => state.settings.get('home'));
const settings = useAppSelector((state) => state.settings.get("home"));
const dispatch = useAppDispatch();
const onChange = useCallback(
(key: string, checked: boolean) => {
dispatch(changeSetting(['home', ...key], checked));
dispatch(changeSetting(["home", key.split("")], checked));
},
[dispatch],
);
@@ -36,7 +36,7 @@ export const ColumnSettings: React.FC = () => {
<SettingToggle
prefix='home_timeline'
settings={settings}
settingPath={['shows', 'reblog']}
settingPath={["shows", "reblog"]}
onChange={onChange}
label={
<FormattedMessage
@@ -51,7 +51,7 @@ export const ColumnSettings: React.FC = () => {
<SettingToggle
prefix='home_timeline'
settings={settings}
settingPath={['shows', 'reply']}
settingPath={["shows", "reply"]}
onChange={onChange}
label={
<FormattedMessage
@@ -1,4 +1,4 @@
import { FormattedMessage } from 'react-intl';
import { FormattedMessage } from "react-intl";
export const CriticalUpdateBanner = () => (
<div className='warning-banner'>
@@ -13,7 +13,7 @@ export const CriticalUpdateBanner = () => (
<FormattedMessage
id='home.pending_critical_update.body'
defaultMessage='Please update your Mastodon server as soon as possible!'
/>{' '}
/>{" "}
<a href='/admin/software_updates'>
<FormattedMessage
id='home.pending_critical_update.link'
@@ -1,9 +1,9 @@
import { FormattedMessage } from 'react-intl';
import { FormattedMessage } from "react-intl";
import { Link } from 'react-router-dom';
import { Link } from "react-router-dom";
import background from 'mastodon/../images/friends-cropped.png';
import { DismissableBanner } from 'mastodon/components/dismissable_banner';
import background from "mastodon/../images/friends-cropped.png";
import { DismissableBanner } from "mastodon/components/dismissable_banner";
export const ExplorePrompt = () => (
<DismissableBanner id='home.explore_prompt'>