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
@@ -117,7 +117,7 @@ export const InviteModal: React.FC<InviteModalProps> = ({ visible, onClose }) =>
<ScrollView style={styles.modalBody} showsVerticalScrollIndicator={false}>
<Text style={styles.modalDescription}>
Share your referral link. When your friends complete KYC, you'll earn trust score points!
Share your referral link. When your friends complete KYC, you&apos;ll earn trust score points!
</Text>
{/* Referral Link */}
@@ -190,7 +190,7 @@ export const InviteModal: React.FC<InviteModalProps> = ({ visible, onClose }) =>
<View style={[styles.section, styles.advancedSection]}>
<Text style={styles.sectionLabel}>Pre-Register a Friend (Advanced)</Text>
<Text style={styles.hint}>
If you know your friend's wallet address, you can pre-register them on-chain.
If you know your friend&apos;s wallet address, you can pre-register them on-chain.
</Text>
<TextInput
style={styles.addressInput}