Add Prettier and ESLint tooling (Refs #77)

This commit is contained in:
2026-10-09 15:56:13 -04:00
parent 8ed059b8d3
commit 16469e2d43
711 changed files with 99737 additions and 28286 deletions
@@ -8,7 +8,10 @@ export function GET({ params, url }: { params: { name: string }; url: URL }) {
return json({ error: 'limit must be between 1 and 10000' }, { status: 400 });
}
let query;
try { query = readMatchQuery(url.searchParams); }
catch { return json({ error: 'Invalid match history filters.' }, { status: 400 }); }
try {
query = readMatchQuery(url.searchParams);
} catch {
return json({ error: 'Invalid match history filters.' }, { status: 400 });
}
return json(serverMatchHistory(params.name, limit, query));
}