Fix all ESLint errors in mobile app (157 errors -> 0)

Major fixes:
- Replace `any` types with proper TypeScript types across all files
- Convert require() imports to ES module imports
- Add __DEV__ guards to console statements
- Escape special characters in JSX (' and ")
- Fix unused variables (prefix with _ or remove)
- Fix React hooks violations (useCallback, useMemo patterns)
- Convert wasm-crypto-shim.js to TypeScript
- Add eslint-disable comments for valid setState patterns

Files affected: 50+ screens, components, contexts, and services

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-18 02:55:03 +03:00
parent 6979f36721
commit 40bc15f1f9
54 changed files with 442 additions and 333 deletions
@@ -1,16 +1,16 @@
import React, { createContext, useContext, ReactNode } from 'react';
import { User } from '@supabase/supabase-js';
import { User, Session, AuthError } from '@supabase/supabase-js';
// Mock Auth Context for testing
interface AuthContextType {
user: User | null;
session: any | null;
session: Session | null;
loading: boolean;
signIn: (email: string, password: string) => Promise<{ error: any }>;
signUp: (email: string, password: string, fullName: string) => Promise<{ error: any }>;
signIn: (email: string, password: string) => Promise<{ error: AuthError | null }>;
signUp: (email: string, password: string, fullName: string) => Promise<{ error: AuthError | null }>;
signOut: () => Promise<void>;
changePassword: (newPassword: string, currentPassword: string) => Promise<{ error: any }>;
resetPassword: (email: string) => Promise<{ error: any }>;
changePassword: (newPassword: string, currentPassword: string) => Promise<{ error: AuthError | null }>;
resetPassword: (email: string) => Promise<{ error: AuthError | null }>;
}
const mockUser: User = {