[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 PropTypes from 'prop-types';
import { Component, PureComponent, cloneElement, Children } from 'react';
import PropTypes from "prop-types";
import { Component, PureComponent, cloneElement, Children } from "react";
import { Switch, Route } from 'react-router-dom';
import { Switch, Route } from "react-router-dom";
import StackTrace from 'stacktrace-js';
import StackTrace from "stacktrace-js";
import BundleColumnError from '../components/bundle_column_error';
import ColumnLoading from '../components/column_loading';
import BundleContainer from '../containers/bundle_container';
import BundleColumnError from "../components/bundle_column_error";
import ColumnLoading from "../components/column_loading";
import BundleContainer from "../containers/bundle_container";
// Small wrapper to pass multiColumn to the route components
export class WrappedSwitch extends PureComponent {
@@ -19,7 +19,7 @@ export class WrappedSwitch extends PureComponent {
const { multiColumn, children } = this.props;
const { location } = this.context.router.route;
const decklessLocation = multiColumn && location.pathname.startsWith('/deck')
const decklessLocation = multiColumn && location.pathname.startsWith("/deck")
? {...location, pathname: location.pathname.slice(5)}
: location;
@@ -61,12 +61,12 @@ export class WrappedRoute extends Component {
state = {
hasError: false,
stacktrace: '',
stacktrace: "",
};
componentDidCatch (error) {
StackTrace.fromError(error).then(stackframes => {
this.setState({ stacktrace: error.toString() + '\n' + stackframes.map(frame => frame.toString()).join('\n') });
this.setState({ stacktrace: error.toString() + "\n" + stackframes.map(frame => frame.toString()).join("\n") });
}).catch(err => {
console.error(err);
});