Fix linter warnings

This commit is contained in:
2026-02-06 23:54:50 +00:00
parent 46c897efcf
commit 6c10cb628e
8 changed files with 447 additions and 381 deletions

View File

@@ -1,17 +1,17 @@
import type { PageLoad } from "./$types";
import type { PageLoad } from './$types';
export const load: PageLoad = async ({ fetch }) => {
const response = await fetch('map-index.json');
const response = await fetch('map-index.json');
if (!response.ok) {
return { maps: [] };
}
if (!response.ok) {
return { maps: [] };
}
const maps = await response.json();
const maps = await response.json();
return {
maps: maps.sort((a: any, b: any) => {
return Number(a.routeId) - Number(b.routeId);
})
};
};
return {
maps: maps.sort((a: any, b: any) => {
return Number(a.routeId) - Number(b.routeId);
})
};
};