mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 15:12:09 +01:00
feat: complete development environment setup and code quality improvements
- Set up pre-commit hooks with husky and lint-staged for automated code quality - Improved TypeScript type safety by replacing 'any' types with proper generics - Fixed markdown linting violations (MD030 spacing) across all documentation - Fixed compound adjective hyphenation in technical documentation - Fixed invalid JSON union syntax in API documentation examples - Automated code formatting and linting on commit - Enhanced error handling with better type constraints - Configured biome and markdownlint for consistent code style - All changes verified with successful production build
This commit is contained in:
@ -242,7 +242,10 @@ class SecurityMonitoringService {
|
||||
* Configure monitoring thresholds
|
||||
*/
|
||||
updateConfig(config: DeepPartial<MonitoringConfig>): void {
|
||||
this.config = this.deepMerge(this.config as any, config as any) as unknown as MonitoringConfig;
|
||||
this.config = this.deepMerge(
|
||||
this.config as any,
|
||||
config as any
|
||||
) as unknown as MonitoringConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -260,7 +263,10 @@ class SecurityMonitoringService {
|
||||
typeof source[key] === "object" &&
|
||||
!Array.isArray(source[key])
|
||||
) {
|
||||
result[key] = this.deepMerge(target[key] || {} as any, source[key] as any);
|
||||
result[key] = this.deepMerge(
|
||||
target[key] || ({} as any),
|
||||
source[key] as any
|
||||
);
|
||||
} else {
|
||||
result[key] = source[key];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user