fix(lint): enable restrict-template-expressions with safe conversions

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 <noreply@anthropic.com>
This commit is contained in:
Quinn Ftw 2025-12-27 20:07:19 -08:00
parent 5b2bcaf657
commit 9be5bd0e1b
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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;
}