mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 15:52:10 +01:00
fix: resolve critical Biome linting issues and document code quality standards
- Add biome-ignore comments for security-critical non-null assertions - Fix unused variables and parameter ordering issues - Reduce complexity in integration functions via helper extraction - Replace problematic 'any' type casts with proper type definitions - Document code quality and linting standards in CLAUDE.md Build verification: ✅ TypeScript compilation passes Security verification: ✅ Critical auth contexts preserved Note: Some remaining Biome warnings for performance utility classes and decorator patterns are acceptable given architectural constraints. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
*/
|
||||
|
||||
import { PerformanceObserver, performance } from "node:perf_hooks";
|
||||
import { TIME } from "../constants";
|
||||
import { cacheManager } from "./cache";
|
||||
import { deduplicationManager } from "./deduplication";
|
||||
|
||||
@ -223,7 +222,7 @@ export class PerformanceMonitor {
|
||||
|
||||
console.log(
|
||||
"[Performance Monitor] Started monitoring with interval:",
|
||||
intervalMs + "ms"
|
||||
`${intervalMs}ms`
|
||||
);
|
||||
}
|
||||
|
||||
@ -286,7 +285,7 @@ export class PerformanceMonitor {
|
||||
const eventLoopDelay = performance.now() - start;
|
||||
|
||||
// Event loop utilization (approximated)
|
||||
const eventLoopUtilization = Math.min(
|
||||
const _eventLoopUtilization = Math.min(
|
||||
100,
|
||||
(eventLoopDelay / 16.67) * 100
|
||||
); // 16.67ms = 60fps
|
||||
@ -778,7 +777,7 @@ export class PerformanceUtils {
|
||||
}
|
||||
|
||||
descriptor.value = async function (...args: unknown[]) {
|
||||
const { result, duration } = await PerformanceUtils.measureAsync(
|
||||
const { result } = await PerformanceUtils.measureAsync(
|
||||
metricName,
|
||||
() => originalMethod.apply(this, args)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user