Fix ESLint warnings and and enable max warnings 0 to fail builds (#2101)

This commit is contained in:
Zane
2025-04-09 15:13:53 -07:00
committed by GitHub
parent 0daff53110
commit 8451fb1c89
69 changed files with 968 additions and 685 deletions
+9 -2
View File
@@ -1,7 +1,14 @@
import { toast } from 'react-toastify';
import { fetchSharedSessionDetails, SharedSessionDetails } from './sharedSessions';
import { type View } from './App';
interface SessionLinksViewOptions {
sessionDetails?: SharedSessionDetails | null;
error?: string;
shareToken?: string;
baseUrl?: string;
[key: string]: unknown;
}
/**
* Handles opening a shared session from a deep link
* @param url The deep link URL (goose://sessions/:shareToken)
@@ -11,7 +18,7 @@ import { type View } from './App';
*/
export async function openSharedSessionFromDeepLink(
url: string,
setView: (view: View, options?: Record<string, any>) => void,
setView: (view: View, options?: SessionLinksViewOptions) => void,
baseUrl?: string
): Promise<SharedSessionDetails | null> {
try {