Enable strict unused-symbol checks and remove dead code
Turn on noUnusedLocals/noUnusedParameters so the compiler keeps flagging dead symbols, then clear the 737 findings it reports: unused imports across src/, unused parameters, unreachable locals, and the copy-pasted 135-line import prologues in the seal tool modules (each tool file now imports only what it uses). Also applies the equivalent-safe lint rewrites (Array.from instead of new Array(n).fill, non-null assertions in tests after toBeDefined, simplified spreads, unused catch params) that oxlint will gate in a later commit.
This commit is contained in:
1 parent
661babd4f4
commit
5f4906758e
43 files changed
+55
-1150
No files matched your search
@@ -13,7 +13,7 @@ export function formatCookieHeader(cookies: Record<string, string> | undefined):
|
||||
// same-named entry, while Authorization is always left to the caller so the
|
||||
// session bearer token can never be silently replaced by config.
|
||||
export function resolveSealCustomHeaders(seal: SealCustomHeaderSource | undefined): Record<string, string> {
|
||||
const headers: Record<string, string> = { ...(seal?.headers ?? {}) };
|
||||
const headers: Record<string, string> = { ...seal?.headers };
|
||||
const cookieHeader = formatCookieHeader(seal?.cookies);
|
||||
if (cookieHeader) headers.Cookie = cookieHeader;
|
||||
return headers;
|
||||
|
||||
Reference in new issue
Block a user