From 9be5bd0e1b5909d9cbe3e6a123b677df8f28285a Mon Sep 17 00:00:00 2001 From: Quinn Ftw Date: Sat, 27 Dec 2025 20:07:19 -0800 Subject: [PATCH] fix(lint): enable restrict-template-expressions with safe conversions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable @typescript-eslint/restrict-template-expressions with options allowing numbers, booleans, and nullish values. Fix Error objects in template literals with String() conversion: - FlexibleAuthGuard.extractMtlsAuth: authorizationError - MTLSGuard.canActivate: authorizationError 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../status-dashboard/server/src/auth/flexible-auth.guard.ts | 2 +- features/status-dashboard/server/src/auth/mtls.guard.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/status-dashboard/server/src/auth/flexible-auth.guard.ts b/features/status-dashboard/server/src/auth/flexible-auth.guard.ts index f95cc1b2b..0a7a9fd8b 100644 --- a/features/status-dashboard/server/src/auth/flexible-auth.guard.ts +++ b/features/status-dashboard/server/src/auth/flexible-auth.guard.ts @@ -248,7 +248,7 @@ export class FlexibleAuthGuard implements CanActivate { // Check if the certificate is authorized (signed by trusted CA) if (!socket.authorized) { const authError = socket.authorizationError; - this.logger.warn(`Client certificate not authorized: ${authError}`); + this.logger.warn(`Client certificate not authorized: ${String(authError)}`); return null; } diff --git a/features/status-dashboard/server/src/auth/mtls.guard.ts b/features/status-dashboard/server/src/auth/mtls.guard.ts index d373b3dc4..2ce464e10 100644 --- a/features/status-dashboard/server/src/auth/mtls.guard.ts +++ b/features/status-dashboard/server/src/auth/mtls.guard.ts @@ -106,7 +106,7 @@ export class MtlsGuard implements CanActivate { // Check if the certificate is authorized (signed by trusted CA) if (!socket.authorized) { const authError = socket.authorizationError; - this.logger.warn(`Client certificate not authorized: ${authError}`); + this.logger.warn(`Client certificate not authorized: ${String(authError)}`); // Allow fall-through to API key auth return true; }