[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,7 +1,7 @@
import { connect } from 'react-redux';
import { connect } from "react-redux";
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from '../../../actions/bundles';
import Bundle from '../components/bundle';
import { fetchBundleRequest, fetchBundleSuccess, fetchBundleFail } from "../../../actions/bundles";
import Bundle from "../components/bundle";
const mapDispatchToProps = dispatch => ({
onFetch () {
@@ -1,10 +1,10 @@
import { connect } from 'react-redux';
import { connect } from "react-redux";
import ColumnsArea from '../components/columns_area';
import ColumnsArea from "../components/columns_area";
const mapStateToProps = state => ({
columns: state.getIn(['settings', 'columns']),
isModalOpen: !!state.get('modal').modalType,
columns: state.getIn(["settings", "columns"]),
isModalOpen: !!state.get("modal").modalType,
});
export default connect(mapStateToProps, null, null, { forwardRef: true })(ColumnsArea);
@@ -1,9 +1,9 @@
import { connect } from 'react-redux';
import { connect } from "react-redux";
import LoadingBar from 'react-redux-loading-bar';
import LoadingBar from "react-redux-loading-bar";
const mapStateToProps = (state, ownProps) => ({
loading: state.get('loadingBar')[ownProps.scope || 'default'],
loading: state.get("loadingBar")[ownProps.scope || "default"],
});
export default connect(mapStateToProps)(LoadingBar.WrappedComponent);
@@ -1,12 +1,12 @@
import { connect } from 'react-redux';
import { connect } from "react-redux";
import { openModal, closeModal } from '../../../actions/modal';
import ModalRoot from '../components/modal_root';
import { openModal, closeModal } from "../../../actions/modal";
import ModalRoot from "../components/modal_root";
const mapStateToProps = state => ({
ignoreFocus: state.getIn(['modal', 'ignoreFocus']),
type: state.getIn(['modal', 'stack', 0, 'modalType'], null),
props: state.getIn(['modal', 'stack', 0, 'modalProps'], {}),
ignoreFocus: state.getIn(["modal", "ignoreFocus"]),
type: state.getIn(["modal", "stack", 0, "modalType"], null),
props: state.getIn(["modal", "stack", 0, "modalProps"], {}),
});
const mapDispatchToProps = dispatch => ({
@@ -14,7 +14,7 @@ const mapDispatchToProps = dispatch => ({
if (confirmationMessage) {
dispatch(
openModal({
modalType: 'CONFIRM',
modalType: "CONFIRM",
modalProps: {
message: confirmationMessage.message,
confirm: confirmationMessage.confirm,
@@ -1,14 +1,14 @@
import { injectIntl } from 'react-intl';
import { injectIntl } from "react-intl";
import { connect } from 'react-redux';
import { connect } from "react-redux";
import { NotificationStack } from 'react-notification';
import { NotificationStack } from "react-notification";
import { dismissAlert } from '../../../actions/alerts';
import { getAlerts } from '../../../selectors';
import { dismissAlert } from "../../../actions/alerts";
import { getAlerts } from "../../../selectors";
const formatIfNeeded = (intl, message, values) => {
if (typeof message === 'object') {
if (typeof message === "object") {
return intl.formatMessage(message, values);
}
@@ -1,32 +1,36 @@
import { Map as ImmutableMap, List as ImmutableList } from 'immutable';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { Map as ImmutableMap, List as ImmutableList } from "immutable";
import { connect } from "react-redux";
import { createSelector } from "reselect";
import { debounce } from 'lodash';
import { debounce } from "lodash";
import { scrollTopTimeline, loadPending } from '../../../actions/timelines';
import StatusList from '../../../components/status_list';
import { me } from '../../../initial_state';
import { scrollTopTimeline, loadPending } from "../../../actions/timelines";
import StatusList from "../../../components/status_list";
import { me } from "../../../initial_state";
const makeGetStatusIds = (pending = false) => createSelector([
(state, { type }) => state.getIn(['settings', type], ImmutableMap()),
(state, { type }) => state.getIn(['timelines', type, pending ? 'pendingItems' : 'items'], ImmutableList()),
(state) => state.get('statuses'),
(state, { type }) => state.getIn(["settings", type], ImmutableMap()),
(state, { type }) => state.getIn(["timelines", type, pending ? "pendingItems" : "items"], ImmutableList()),
(state) => state.get("statuses"),
], (columnSettings, statusIds, statuses) => {
return statusIds.filter(id => {
if (id === null) return true;
if (id === null) {
return true;
}
const statusForId = statuses.get(id);
let showStatus = true;
if (statusForId.get('account') === me) return true;
if (columnSettings.getIn(['shows', 'reblog']) === false) {
showStatus = showStatus && statusForId.get('reblog') === null;
if (statusForId.get("account") === me) {
return true;
}
if (columnSettings.getIn(['shows', 'reply']) === false) {
showStatus = showStatus && (statusForId.get('in_reply_to_id') === null || statusForId.get('in_reply_to_account_id') === me);
if (columnSettings.getIn(["shows", "reblog"]) === false) {
showStatus = showStatus && statusForId.get("reblog") === null;
}
if (columnSettings.getIn(["shows", "reply"]) === false) {
showStatus = showStatus && (statusForId.get("in_reply_to_id") === null || statusForId.get("in_reply_to_account_id") === me);
}
return showStatus;
@@ -39,10 +43,10 @@ const makeMapStateToProps = () => {
const mapStateToProps = (state, { timelineId }) => ({
statusIds: getStatusIds(state, { type: timelineId }),
lastId: state.getIn(['timelines', timelineId, 'items'])?.last(),
isLoading: state.getIn(['timelines', timelineId, 'isLoading'], true),
isPartial: state.getIn(['timelines', timelineId, 'isPartial'], false),
hasMore: state.getIn(['timelines', timelineId, 'hasMore']),
lastId: state.getIn(["timelines", timelineId, "items"])?.last(),
isLoading: state.getIn(["timelines", timelineId, "isLoading"], true),
isPartial: state.getIn(["timelines", timelineId, "isPartial"], false),
hasMore: state.getIn(["timelines", timelineId, "hasMore"]),
numPending: getPendingStatusIds(state, { type: timelineId }).size,
});