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 b9903831c6
commit 1a47363938
54 changed files with 442 additions and 333 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ const PezkuwiWebView: React.FC<PezkuwiWebViewProps> = ({
}
// Get the transaction method from API
const txModule = api.tx[section];
const txModule = api.tx[section] as Record<string, (...args: unknown[]) => { signAndSend: (...args: unknown[]) => Promise<unknown> }> | undefined;
if (!txModule) {
throw new Error(`Unknown section: ${section}`);
}