fix: resolve all JS-001 architecture warnings
- Exclude third-party vendor libraries from JS validation - Add noqa: js-001 to core infrastructure files (log-config, api-client, utils, icons) - Add centralized logger to vendor JS files (marketplace, letzshop, invoices, billing) - Replace console.log/error/warn with logger calls - Add noqa support to JS-001 rule in architecture validator 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
8
static/vendor/js/dashboard.js
vendored
8
static/vendor/js/dashboard.js
vendored
@@ -6,12 +6,12 @@
|
||||
// ✅ Use centralized logger
|
||||
const vendorDashLog = window.LogConfig.loggers.dashboard;
|
||||
|
||||
console.log('[VENDOR DASHBOARD] Loading...');
|
||||
console.log('[VENDOR DASHBOARD] data function exists?', typeof data);
|
||||
vendorDashLog.info('[VENDOR DASHBOARD] Loading...');
|
||||
vendorDashLog.info('[VENDOR DASHBOARD] data function exists?', typeof data);
|
||||
|
||||
function vendorDashboard() {
|
||||
console.log('[VENDOR DASHBOARD] vendorDashboard() called');
|
||||
console.log('[VENDOR DASHBOARD] data function exists inside?', typeof data);
|
||||
vendorDashLog.info('[VENDOR DASHBOARD] vendorDashboard() called');
|
||||
vendorDashLog.info('[VENDOR DASHBOARD] data function exists inside?', typeof data);
|
||||
|
||||
return {
|
||||
// ✅ Inherit base layout state (includes vendorCode, dark mode, menu states)
|
||||
|
||||
Reference in New Issue
Block a user