Browse Source

fix(lint): suppress console statement warnings in test app

Add eslint-disable-next-line comments for intentional console.log statements
in test configuration and router files. These console statements are
intentional for debugging and testing purposes.

Files updated:
- test-user-zero.ts: 5 console statements suppressed
- router/index.ts: 2 console statements suppressed

All lint warnings resolved.
master
Matthew Raymer 1 day ago
parent
commit
17792e4dea
  1. 10
      test-apps/daily-notification-test/src/config/test-user-zero.ts
  2. 4
      test-apps/daily-notification-test/src/router/index.ts

10
test-apps/daily-notification-test/src/config/test-user-zero.ts

@ -313,7 +313,7 @@ export class TestUserZeroAPI {
*/ */
setBaseUrl(url: string): void { setBaseUrl(url: string): void {
this.baseUrl = url; this.baseUrl = url;
// eslint-disable-next-line no-console
console.log("🔧 API base URL updated to:", url); console.log("🔧 API base URL updated to:", url);
} }
@ -331,7 +331,7 @@ export class TestUserZeroAPI {
if (useMock) { if (useMock) {
// Return mock data for offline testing // Return mock data for offline testing
// eslint-disable-next-line no-console
console.log("🧪 Using mock starred projects response"); console.log("🧪 Using mock starred projects response");
return MOCK_STARRED_PROJECTS_RESPONSE; return MOCK_STARRED_PROJECTS_RESPONSE;
} }
@ -350,9 +350,9 @@ export class TestUserZeroAPI {
afterId: afterId || TEST_USER_ZERO_CONFIG.starredProjects.lastAckedJwtId afterId: afterId || TEST_USER_ZERO_CONFIG.starredProjects.lastAckedJwtId
}; };
// eslint-disable-next-line no-console
console.log("🌐 Making real API call to:", url); console.log("🌐 Making real API call to:", url);
// eslint-disable-next-line no-console
console.log("📦 Request body:", requestBody); console.log("📦 Request body:", requestBody);
const response = await fetch(url, { const response = await fetch(url, {
@ -373,7 +373,7 @@ export class TestUserZeroAPI {
*/ */
refreshToken(): void { refreshToken(): void {
this.jwt = generateTestJWT(); this.jwt = generateTestJWT();
// eslint-disable-next-line no-console
console.log("🔄 JWT token refreshed"); console.log("🔄 JWT token refreshed");
} }

4
test-apps/daily-notification-test/src/router/index.ts

@ -105,7 +105,7 @@ router.beforeEach((to, from, next) => {
} }
// Add loading state // Add loading state
// eslint-disable-next-line no-console
console.log(`🔄 Navigating from ${String(from.name) || 'unknown'} to ${String(to.name) || 'unknown'}`) console.log(`🔄 Navigating from ${String(from.name) || 'unknown'} to ${String(to.name) || 'unknown'}`)
next() next()
@ -113,7 +113,7 @@ router.beforeEach((to, from, next) => {
router.afterEach((to) => { router.afterEach((to) => {
// Clear any previous errors on successful navigation // Clear any previous errors on successful navigation
// eslint-disable-next-line no-console
console.log(`✅ Navigation completed: ${String(to.name) || 'unknown'}`) console.log(`✅ Navigation completed: ${String(to.name) || 'unknown'}`)
}) })

Loading…
Cancel
Save