From 5b2bcaf657a6aeb65c9e8798abd8f526a98d9549 Mon Sep 17 00:00:00 2001 From: Quinn Ftw Date: Sat, 27 Dec 2025 20:04:52 -0800 Subject: [PATCH] fix(lint): enable no-var-requires rule with proper eslint-disable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable @typescript-eslint/no-var-requires to enforce ES6 imports. Update eslint-disable comments for intentional dynamic requires: - Optional @lilith/registry-integration module loading 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- features/status-dashboard/server/src/app.module.ts | 2 +- features/status-dashboard/server/src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/status-dashboard/server/src/app.module.ts b/features/status-dashboard/server/src/app.module.ts index 533ea6bde..5adffd10b 100644 --- a/features/status-dashboard/server/src/app.module.ts +++ b/features/status-dashboard/server/src/app.module.ts @@ -13,7 +13,7 @@ import { MonitoringModule } from './monitoring/monitoring.module'; // Registry integration is optional (requires workspace build) let RegistryModule: { forRoot: (config: unknown) => DynamicModule } | undefined; try { - // eslint-disable-next-line @typescript-eslint/no-require-imports + // eslint-disable-next-line @typescript-eslint/no-var-requires RegistryModule = require('@lilith/registry-integration').RegistryModule; } catch { // Registry integration not available in standalone builds diff --git a/features/status-dashboard/server/src/main.ts b/features/status-dashboard/server/src/main.ts index 48a116b9d..2c6353fc0 100644 --- a/features/status-dashboard/server/src/main.ts +++ b/features/status-dashboard/server/src/main.ts @@ -12,7 +12,7 @@ import { JSONLoggerService } from './logging'; type RegistryServiceType = { getPort: () => number | undefined; isServiceRegistered: () => boolean } | null; let RegistryService: new () => RegistryServiceType; try { - // eslint-disable-next-line @typescript-eslint/no-require-imports + // eslint-disable-next-line @typescript-eslint/no-var-requires RegistryService = require('@lilith/registry-integration').RegistryService; } catch { // Registry service not available in standalone builds