|
| 1 | +# Fix ESLint Errors Plan |
| 2 | + |
| 3 | +## Files to Edit |
| 4 | + |
| 5 | +### 1. src/app/api/errors/route.ts ✅ |
| 6 | +- Change import { NextRequest, NextResponse } to import type { NextRequest } and import { NextResponse } |
| 7 | +- Change import { ErrorReportingData } to import type { ErrorReportingData } |
| 8 | + |
| 9 | +### 2. src/components/error/ARErrorBoundary.tsx ✅ |
| 10 | +- Change import React, { Component, ReactNode } to import type { ReactNode } |
| 11 | +- Change import { AppError, ErrorBoundaryState, ErrorRecoveryAction } to import type { AppError, ErrorBoundaryState } and import { ErrorRecoveryAction } |
| 12 | +- Change "ar" as any to ErrorCategory.AR |
| 13 | +- Change errorInfo: any to errorInfo: React.ErrorInfo |
| 14 | + |
| 15 | +### 3. src/components/error/ErrorTestSuite.tsx ✅ |
| 16 | +- Change recoveryAction: 'reconnect' as any to ErrorRecoveryAction.RECONNECT |
| 17 | +- Change other recoveryAction strings to enum values |
| 18 | +- Change catch (error: any) to error: unknown |
| 19 | + |
| 20 | +### 4. src/store/base.ts ✅ |
| 21 | +- Change import { PersistOptions } to import type { PersistOptions } |
| 22 | +- Change any to unknown in function parameters and catch |
| 23 | + |
| 24 | +### 5. src/store/debug.ts ✅ |
| 25 | +- Change all any to unknown or Record<string, unknown> in interfaces and functions |
| 26 | + |
| 27 | +### 6. src/types/errors.ts ✅ |
| 28 | +- Change Record<string, any> to Record<string, unknown> |
| 29 | + |
| 30 | +### 7. src/utils/errorFactory.ts ✅ |
| 31 | +- Change imports to import type |
| 32 | +- Change any to unknown in error parameters |
| 33 | + |
| 34 | +### 8. src/utils/errorReporting.ts ✅ |
| 35 | +- Change imports to import type |
| 36 | + |
| 37 | +### 9. src/utils/i18nFormatting.ts ✅ |
| 38 | +- Change Record<string, any> to Record<string, unknown> |
0 commit comments