mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-11 07:12:36 +00:00
Fix lint failures, console.* convention violations, and CI Node version mismatch
- Add docs/capacitor-native-app-plan.md to hex-lint ignore list (code examples naturally reference hex colors in Capacitor config) - Replace direct console.error/console.log calls with logger utility in historyView.js, profileCache.js, EventDetailsModal.js, ZapInterface.js, and notificationController.js - Update CI workflow from Node 20 to Node 22 to match package.json engines https://claude.ai/code/session_01LzErpH9FNw4hAPsjoYb1v9
This commit is contained in:
7 files changed
+19
-14
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { userLogger as _fallbackUserLogger, devLogger as _fallbackDevLogger } from "../utils/logger.js";
|
||||
|
||||
export default class NotificationController {
|
||||
constructor({
|
||||
portal,
|
||||
@@ -16,8 +18,8 @@ export default class NotificationController {
|
||||
this.statusContainer?.querySelector("[data-status-message]") || null;
|
||||
|
||||
// Fallback loggers if not provided
|
||||
this.userLogger = loggers.userLogger || { error: console.error, warn: console.warn, log: console.log, info: console.info };
|
||||
this.devLogger = loggers.devLogger || { error: console.error, warn: console.warn, log: console.log, info: console.info };
|
||||
this.userLogger = loggers.userLogger || _fallbackUserLogger;
|
||||
this.devLogger = loggers.devLogger || _fallbackDevLogger;
|
||||
|
||||
this.document = documentRef;
|
||||
this.window = windowRef;
|
||||
|
||||
Reference in new issue
Block a user