[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,39 +1,39 @@
import PropTypes from 'prop-types';
import { PureComponent } from 'react';
import PropTypes from "prop-types";
import { PureComponent } from "react";
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import { FormattedMessage, defineMessages, injectIntl } from "react-intl";
import { Helmet } from 'react-helmet';
import { Helmet } from "react-helmet";
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePropTypes from "react-immutable-proptypes";
import { connect } from "react-redux";
import Toggle from 'react-toggle';
import Toggle from "react-toggle";
import { addColumn, removeColumn, moveColumn } from 'mastodon/actions/columns';
import { fetchList, deleteList, updateList } from 'mastodon/actions/lists';
import { openModal } from 'mastodon/actions/modal';
import { connectListStream } from 'mastodon/actions/streaming';
import { expandListTimeline } from 'mastodon/actions/timelines';
import Column from 'mastodon/components/column';
import ColumnHeader from 'mastodon/components/column_header';
import { Icon } from 'mastodon/components/icon';
import { LoadingIndicator } from 'mastodon/components/loading_indicator';
import { RadioButton } from 'mastodon/components/radio_button';
import BundleColumnError from 'mastodon/features/ui/components/bundle_column_error';
import StatusListContainer from 'mastodon/features/ui/containers/status_list_container';
import { addColumn, removeColumn, moveColumn } from "mastodon/actions/columns";
import { fetchList, deleteList, updateList } from "mastodon/actions/lists";
import { openModal } from "mastodon/actions/modal";
import { connectListStream } from "mastodon/actions/streaming";
import { expandListTimeline } from "mastodon/actions/timelines";
import Column from "mastodon/components/column";
import ColumnHeader from "mastodon/components/column_header";
import { Icon } from "mastodon/components/icon";
import { LoadingIndicator } from "mastodon/components/loading_indicator";
import { RadioButton } from "mastodon/components/radio_button";
import BundleColumnError from "mastodon/features/ui/components/bundle_column_error";
import StatusListContainer from "mastodon/features/ui/containers/status_list_container";
const messages = defineMessages({
deleteMessage: { id: 'confirmations.delete_list.message', defaultMessage: 'Are you sure you want to permanently delete this list?' },
deleteConfirm: { id: 'confirmations.delete_list.confirm', defaultMessage: 'Delete' },
followed: { id: 'lists.replies_policy.followed', defaultMessage: 'Any followed user' },
none: { id: 'lists.replies_policy.none', defaultMessage: 'No one' },
list: { id: 'lists.replies_policy.list', defaultMessage: 'Members of the list' },
deleteMessage: { id: "confirmations.delete_list.message", defaultMessage: "Are you sure you want to permanently delete this list?" },
deleteConfirm: { id: "confirmations.delete_list.confirm", defaultMessage: "Delete" },
followed: { id: "lists.replies_policy.followed", defaultMessage: "Any followed user" },
none: { id: "lists.replies_policy.none", defaultMessage: "No one" },
list: { id: "lists.replies_policy.list", defaultMessage: "Members of the list" },
});
const mapStateToProps = (state, props) => ({
list: state.getIn(['lists', props.params.id]),
hasUnread: state.getIn(['timelines', `list:${props.params.id}`, 'unread']) > 0,
list: state.getIn(["lists", props.params.id]),
hasUnread: state.getIn(["timelines", `list:${props.params.id}`, "unread"]) > 0,
});
class ListTimeline extends PureComponent {
@@ -58,8 +58,8 @@ class ListTimeline extends PureComponent {
if (columnId) {
dispatch(removeColumn(columnId));
} else {
dispatch(addColumn('LIST', { id: this.props.params.id }));
this.context.router.history.push('/');
dispatch(addColumn("LIST", { id: this.props.params.id }));
this.context.router.history.push("/");
}
};
@@ -117,7 +117,7 @@ class ListTimeline extends PureComponent {
handleEditClick = () => {
this.props.dispatch(openModal({
modalType: 'LIST_EDITOR',
modalType: "LIST_EDITOR",
modalProps: { listId: this.props.params.id },
}));
};
@@ -127,7 +127,7 @@ class ListTimeline extends PureComponent {
const { id } = this.props.params;
dispatch(openModal({
modalType: 'CONFIRM',
modalType: "CONFIRM",
modalProps: {
message: intl.formatMessage(messages.deleteMessage),
confirm: intl.formatMessage(messages.deleteConfirm),
@@ -137,7 +137,7 @@ class ListTimeline extends PureComponent {
if (columnId) {
dispatch(removeColumn(columnId));
} else {
this.context.router.history.push('/lists');
this.context.router.history.push("/lists");
}
},
},
@@ -160,11 +160,11 @@ class ListTimeline extends PureComponent {
const { hasUnread, columnId, multiColumn, list, intl } = this.props;
const { id } = this.props.params;
const pinned = !!columnId;
const title = list ? list.get('title') : id;
const replies_policy = list ? list.get('replies_policy') : undefined;
const isExclusive = list ? list.get('exclusive') : undefined;
const title = list ? list.get("title") : id;
const replies_policy = list ? list.get("replies_policy") : undefined;
const isExclusive = list ? list.get("exclusive") : undefined;
if (typeof list === 'undefined') {
if (typeof list === "undefined") {
return (
<Column>
<div className='scrollable'>
@@ -213,7 +213,7 @@ class ListTimeline extends PureComponent {
<FormattedMessage id='lists.replies_policy.title' defaultMessage='Show replies to:' />
</span>
<div className='column-settings__row'>
{ ['none', 'list', 'followed'].map(policy => (
{ ["none", "list", "followed"].map(policy => (
<RadioButton name='order' key={policy} value={policy} label={intl.formatMessage(messages[policy])} checked={replies_policy === policy} onChange={this.handleRepliesPolicyChange} />
))}
</div>