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:
Zaid Humaimidi committed 2026-03-12 14:58:19 -07:00
1 parent 4a191afdec
commit 75908e624f
27 files changed
+1146 -1595

No files matched your search

+3 -3
View File
@@ -119,7 +119,7 @@ function parameterInfoList(xml: Element): [Path, boolean, boolean][] {
if (param && !param.endsWith("."))
return [Path.parse(param), false, parsed];
else return [Path.parse(param.slice(0, -1)), true, parsed];
} catch (err) {
} catch {
warnings.push({
message: "Missing or invalid XML node",
element: "Name",
@@ -201,7 +201,7 @@ function parameterValueList(
}
try {
return [Path.parse(param), parsed, valueType];
} catch (err) {
} catch {
warnings.push({
message: "Missing or invalid XML node",
element: "Name",
@@ -250,7 +250,7 @@ function parameterAttributeList(xml: Element): [Path, number, string[]][] {
try {
return [Path.parse(param), notification, accessList];
} catch (err) {
} catch {
warnings.push({
message: "Missing or invalid XML node",
element: "Name",