mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-28 23:37:56 +00:00
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:
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { render, fireEvent } from '@testing-library/react-native';
|
||||
import { render } from '@testing-library/react-native';
|
||||
import { Text } from 'react-native';
|
||||
import { BottomSheet } from '../BottomSheet';
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ describe('Button', () => {
|
||||
});
|
||||
|
||||
it('should render with icon', () => {
|
||||
const { getByText, getByTestId } = render(
|
||||
const { _getByText, getByTestId } = render(
|
||||
<Button title="With Icon" icon={<Button title="Icon" onPress={() => {}} />} testID="button" onPress={() => {}} />
|
||||
);
|
||||
expect(getByTestId('button')).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user