generated from nhcarrigan/template
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!
This commit is contained in:
+7
-4
@@ -4,19 +4,22 @@
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { Logger } from "@nhcarrigan/logger";
|
||||
import type { Logger } from "@nhcarrigan/logger";
|
||||
|
||||
// import { Logger } from "@nhcarrigan/logger";
|
||||
// Import { Logger } from "@nhcarrigan/logger";
|
||||
|
||||
// const logger = new Logger("Minori", process.env.LOG_TOKEN ?? "");
|
||||
// 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) => {
|
||||
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 };
|
||||
|
||||
Reference in New Issue
Block a user