chore: Enable more lint rules, disable some that trigger a lot. Will clean up later.

This commit is contained in:
cpojer
2026-01-31 16:03:28 +09:00
parent 481f696a87
commit 15792b153f
292 changed files with 643 additions and 699 deletions

View File

@@ -193,7 +193,7 @@ export function getStatusCode(err: unknown) {
function safeStringify(value: unknown, limit = 800): string {
try {
const seen = new WeakSet<object>();
const seen = new WeakSet();
const raw = JSON.stringify(
value,
(_key, v) => {
@@ -236,7 +236,7 @@ function extractBoomDetails(err: unknown): {
typeof (output as { statusCode?: unknown }).statusCode === "number"
? ((output as { statusCode?: unknown }).statusCode as number)
: typeof payload?.statusCode === "number"
? (payload.statusCode as number)
? payload.statusCode
: undefined;
const error = typeof payload?.error === "string" ? payload.error : undefined;
const message = typeof payload?.message === "string" ? payload.message : undefined;