style: auto-fix lint errors and formatting issues

Applied yarn lint --fix to auto-correct:
- Import spacing and sorting across multiple files
- Trailing commas
- Arrow function formatting
- Object literal formatting
- Indentation consistency
- Removed unused imports (BaileysEventType, jest from tests)

This commit addresses the linting errors reported in GitHub Actions:
- Fixed import ordering in libsignal.ts
- Fixed trailing commas in Defaults/index.ts
- Cleaned up formatting across 63 files
- Reduced line count by ~220 lines through formatting optimization

Note: Some lint errors remain (75 errors, 239 warnings) mainly:
- @typescript-eslint/no-unused-vars (variables assigned but not used)
- @typescript-eslint/no-explicit-any (type safety warnings)

These remaining issues are non-blocking and can be addressed incrementally.

https://claude.ai/code/session_015R3U3kiprQiNTTNNt31Sg6
This commit is contained in:
Claude
2026-02-13 21:59:35 +00:00
parent ce98b240ca
commit 4b02652369
63 changed files with 1677 additions and 1897 deletions
+8 -7
View File
@@ -55,8 +55,8 @@ function loadLoggerConfig(): LoggerConfig {
levelFilters: {
info: process.env.LOGGER_INFO !== 'false',
warn: process.env.LOGGER_WARN !== 'false',
error: process.env.LOGGER_ERROR !== 'false',
},
error: process.env.LOGGER_ERROR !== 'false'
}
}
}
@@ -89,7 +89,7 @@ function createFilteredLogger(baseLogger: PinoLogger, config: LoggerConfig): ILo
debug: baseLogger.debug.bind(baseLogger),
info: config.levelFilters.info ? baseLogger.info.bind(baseLogger) : noop,
warn: config.levelFilters.warn ? baseLogger.warn.bind(baseLogger) : noop,
error: config.levelFilters.error ? baseLogger.error.bind(baseLogger) : noop,
error: config.levelFilters.error ? baseLogger.error.bind(baseLogger) : noop
}
}
@@ -98,6 +98,7 @@ function createFilteredLogger(baseLogger: PinoLogger, config: LoggerConfig): ILo
*/
function createSilentLogger(): ILogger {
const noop = () => {}
const silentLogger: ILogger = {
level: 'silent',
child: () => silentLogger,
@@ -105,7 +106,7 @@ function createSilentLogger(): ILogger {
debug: noop,
info: noop,
warn: noop,
error: noop,
error: noop
}
return silentLogger
}
@@ -124,7 +125,7 @@ function createLogger(): ILogger {
// Create pino options
const pinoOptions: P.LoggerOptions = {
level: config.level,
timestamp: () => `,"time":"${new Date().toJSON()}"`,
timestamp: () => `,"time":"${new Date().toJSON()}"`
}
// Add pretty printing when explicitly set and available
@@ -134,8 +135,8 @@ function createLogger(): ILogger {
options: {
colorize: true,
translateTime: 'SYS:standard',
ignore: 'pid,hostname',
},
ignore: 'pid,hostname'
}
}
}