feat: enable type-aware no-base-to-string rule, fix 56 violations (#22750)

This commit is contained in:
Kit Langton
2026-04-15 23:50:47 -04:00
committed by GitHub
parent dfaec0c494
commit eea507f2eb
26 changed files with 87 additions and 55 deletions
+1
View File
@@ -60,6 +60,7 @@ export function errorData(error: unknown) {
acc[key] = value
return acc
}
// oxlint-disable-next-line no-base-to-string -- intentional coercion of arbitrary error properties
acc[key] = value instanceof Error ? value.message : String(value)
return acc
}, {})