style: auto-fix ESLint issues (curly braces and formatting)
- Add curly braces to all if/else/for/while statements - Fix indentation and trailing spaces - Auto-fixed 372 linting errors using eslint --fix - Remaining issues are warnings only (non-null assertions, explicit any types)
This commit is contained in:
+4
-4
@@ -30,15 +30,15 @@ function shouldLog(level: LogLevel): boolean {
|
||||
|
||||
export const logger = {
|
||||
debug(...args: unknown[]): void {
|
||||
if (shouldLog('debug')) console.debug(...args);
|
||||
if (shouldLog('debug')) {console.debug(...args);}
|
||||
},
|
||||
info(...args: unknown[]): void {
|
||||
if (shouldLog('info')) console.log(...args);
|
||||
if (shouldLog('info')) {console.log(...args);}
|
||||
},
|
||||
warn(...args: unknown[]): void {
|
||||
if (shouldLog('warn')) console.warn(...args);
|
||||
if (shouldLog('warn')) {console.warn(...args);}
|
||||
},
|
||||
error(...args: unknown[]): void {
|
||||
if (shouldLog('error')) console.error(...args);
|
||||
if (shouldLog('error')) {console.error(...args);}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user