feature: migration TS + eslint 10

This commit is contained in:
2026-06-18 22:30:58 +02:00
parent 5b3d67bf47
commit 060e45c7fb
4 changed files with 849 additions and 2744 deletions
+1 -4
View File
@@ -28,10 +28,7 @@ const dbConfig = {
async function getYearsOnServer() {
const res = await fetch(`${BASE_URL}/`);
const html = await res.text();
const years = [];
for (const match of html.matchAll(/href="(\d{4})\/"/g)) {
years.push(Number(match[1]));
}
const years = Array.from(html.matchAll(/href="(\d{4})\/"/g), match => Number(match[1]));
return years.toSorted();
}