From 0cfb41755a3cf5bc39cd65e45e02418c245fa793 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Thu, 27 Jun 2024 00:21:32 -0400 Subject: lint --- frontend/src/components/PluginView.tsx | 4 +--- frontend/src/errorboundary-hook.tsx | 8 ++++---- frontend/src/index.ts | 2 +- frontend/src/router-hook.tsx | 4 +--- frontend/src/tabs-hook.tsx | 6 +++++- frontend/src/utils/errors.ts | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) (limited to 'frontend') diff --git a/frontend/src/components/PluginView.tsx b/frontend/src/components/PluginView.tsx index 07367bc3..19afbca5 100644 --- a/frontend/src/components/PluginView.tsx +++ b/frontend/src/components/PluginView.tsx @@ -29,9 +29,7 @@ const PluginView: FC = () => {
- - {(visible || activePlugin.alwaysRender) && activePlugin.content} - + {(visible || activePlugin.alwaysRender) && activePlugin.content}
); diff --git a/frontend/src/errorboundary-hook.tsx b/frontend/src/errorboundary-hook.tsx index f7aadcbd..9a603460 100644 --- a/frontend/src/errorboundary-hook.tsx +++ b/frontend/src/errorboundary-hook.tsx @@ -56,7 +56,7 @@ class ErrorBoundaryHook extends Logger { shouldReport, skipAllReporting: this.doNotReportErrors || this.disableReportingTimer, }); - if (!shouldReport) this.temporarilyDisableReporting(); + if (!shouldReport) this.temporarilyDisableReporting(); // react#15069 workaround. this took 2 hours to figure out. if ( args[0]?.message?.[3]?.[0] && @@ -95,14 +95,14 @@ class ErrorBoundaryHook extends Logger { } public temporarilyDisableReporting() { - this.debug("Reporting disabled for 30s due to a non-steam error."); + this.debug('Reporting disabled for 30s due to a non-steam error.'); if (this.disableReportingTimer) { clearTimeout(this.disableReportingTimer); } this.disableReportingTimer = setTimeout(() => { - this.debug("Reporting re-enabled after 30s timeout."); + this.debug('Reporting re-enabled after 30s timeout.'); this.disableReportingTimer = 0; - }, 30000) + }, 30000); } deinit() { diff --git a/frontend/src/index.ts b/frontend/src/index.ts index 1039fb23..4ea22318 100644 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -7,7 +7,7 @@ interface Window { (async () => { // Wait for react to definitely be loaded while (!window.webpackChunksteamui || window.webpackChunksteamui <= 3) { - await new Promise(r => setTimeout(r, 10)); // Can't use DFL sleep here. + await new Promise((r) => setTimeout(r, 10)); // Can't use DFL sleep here. } if (!window.SP_REACT) { diff --git a/frontend/src/router-hook.tsx b/frontend/src/router-hook.tsx index 7b66d351..e3325913 100644 --- a/frontend/src/router-hook.tsx +++ b/frontend/src/router-hook.tsx @@ -61,9 +61,7 @@ class RouterHook extends Logger { routes.forEach(({ component, props }, path) => { newRouterArray.push( - - {createElement(component)} - + {createElement(component)} , ); }); diff --git a/frontend/src/tabs-hook.tsx b/frontend/src/tabs-hook.tsx index 4ddea44a..16643165 100644 --- a/frontend/src/tabs-hook.tsx +++ b/frontend/src/tabs-hook.tsx @@ -147,7 +147,11 @@ class TabsHook extends Logger { decky: true, initialVisibility: visible, }; - tab.panel = {content}; + tab.panel = ( + + {content} + + ); existingTabs.push(tab); } } diff --git a/frontend/src/utils/errors.ts b/frontend/src/utils/errors.ts index 35122ebb..a99fd0b1 100644 --- a/frontend/src/utils/errors.ts +++ b/frontend/src/utils/errors.ts @@ -22,7 +22,7 @@ export function getLikelyErrorSourceFromValveError(error: ValveError): ErrorSour } export function getLikelyErrorSourceFromValveReactError(error: ValveReactErrorInfo): ErrorSource { - return getLikelyErrorSource(error?.error?.stack + "\n" + error.info.componentStack); + return getLikelyErrorSource(error?.error?.stack + '\n' + error.info.componentStack); } export function getLikelyErrorSource(error?: string): ErrorSource { -- cgit v1.2.3