fix: fix all biome

This commit is contained in:
2025-01-31 05:57:51 +08:00
parent 316361bd3c
commit c9d0066d64
114 changed files with 2255 additions and 2068 deletions

View File

@@ -1,17 +1,20 @@
import { Injectable } from 'injection-js';
import { AbstractLoggerService } from './abstract-logger.service';
import type { AbstractLoggerService } from './abstract-logger.service';
@Injectable()
export class ConsoleLoggerService implements AbstractLoggerService {
logError(message: string | object, ...args: any[]): void {
// biome-ignore lint/suspicious/noConsole: <explanation>
console.error(message, ...args);
}
logWarning(message: string | object, ...args: any[]): void {
// biome-ignore lint/suspicious/noConsole: <explanation>
console.warn(message, ...args);
}
logDebug(message: string | object, ...args: any[]): void {
// biome-ignore lint/suspicious/noConsole: <explanation>
console.debug(message, ...args);
}
}

View File

@@ -1,6 +1,6 @@
export enum LogLevel {
None,
Debug,
Warn,
Error,
None = 0,
Debug = 1,
Warn = 2,
Error = 3,
}

View File

@@ -15,9 +15,6 @@ describe('Logger Service', () => {
{ provide: AbstractLoggerService, useClass: ConsoleLoggerService },
],
});
});
beforeEach(() => {
loggerService = TestBed.inject(LoggerService);
});