Fix all lint errors

This commit is contained in:
Gregory Schier
2024-09-16 08:36:02 -07:00
parent 974ecd511d
commit 2951023ee8
19 changed files with 43 additions and 34 deletions

View File

@@ -8,7 +8,8 @@ export function tryFormatJson(text: string, pretty = true): string {
try {
if (pretty) return JSON.stringify(JSON.parse(text), null, INDENT);
else return JSON.stringify(JSON.parse(text));
} catch (_) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (err) {
return text;
}
}
@@ -18,7 +19,8 @@ export function tryFormatXml(text: string): string {
try {
return xmlFormat(text, { throwOnFailure: true, strictMode: false, indentation: INDENT });
} catch (_) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
} catch (err) {
return text;
}
}