build: migrate eslint to v10 flat config and upgrade typescript
Replace .eslintrc.json with eslint.config.js using the new flat config format required by ESLint 10. Swap @typescript-eslint/eslint-plugin and @typescript-eslint/parser for the unified typescript-eslint package. Upgrade TypeScript to 5.9 and @types/node to 25. Apply automatic code fixes: remove unused catch bindings and preserve error cause in auth header parsing.
This commit is contained in:
1 parent
4a191afdec
commit
75908e624f
27 files changed
+1146
-1595
No files matched your search
+4
-2
@@ -113,7 +113,7 @@ function checkConnection(): void {
|
||||
setTimestamp(now2);
|
||||
m.redraw();
|
||||
}
|
||||
} catch (err) {
|
||||
} catch {
|
||||
// Ignore in case of missing or invalid Date header
|
||||
}
|
||||
|
||||
@@ -200,7 +200,9 @@ export async function xhrRequest(
|
||||
try {
|
||||
response = xhr.responseText ? JSON.parse(xhr.responseText) : null;
|
||||
} catch (err) {
|
||||
throw new Error("Invalid JSON: " + xhr.responseText.slice(0, 80));
|
||||
throw new Error("Invalid JSON: " + xhr.responseText.slice(0, 80), {
|
||||
cause: err,
|
||||
});
|
||||
}
|
||||
} else {
|
||||
response = xhr.responseText;
|
||||
|
||||
Reference in new issue
Block a user