Files
minori/src/utils/logger.ts
T
hikari 53c73d0093
Node.js CI / CI (pull_request) Successful in 26s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 59s
fix: resolve all ESLint warnings
- Improved JSDoc description for getCommitStatus method
- Fixed import to use type-only import for Logger
- Capitalized comment beginnings
- Added ESLint disable comments with descriptions for mock logger
- Fixed key spacing alignment

All linter warnings are now resolved!
2026-02-20 19:58:33 -08:00

26 lines
789 B
TypeScript

/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import type { Logger } from "@nhcarrigan/logger";
// Import { Logger } from "@nhcarrigan/logger";
// Const logger = new Logger("Minori", process.env.LOG_TOKEN ?? "");
/* eslint-disable no-console -- Temporary mock logger for development */
/* eslint-disable @typescript-eslint/consistent-type-assertions -- Mock logger requires type assertion */
const logger = {
error: (message: string, error: Error) => {
console.error(message, error);
},
log: (level: string, message: string) => {
console.log(level, message);
},
} as unknown as Logger;
/* eslint-enable no-console, @typescript-eslint/consistent-type-assertions -- Re-enable rules after mock logger */
export { logger };