Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

19 changes: 19 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import jest from 'eslint-plugin-jest';
import prettier from 'eslint-plugin-prettier/recommended';
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import reactNativeA11y from 'eslint-plugin-react-native-a11y';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
import testingLibrary from 'eslint-plugin-testing-library';
import tseslint from 'typescript-eslint';
Expand Down Expand Up @@ -59,6 +60,24 @@ export default tseslint.config(
'react/self-closing-comp': 'error',
},
},
{
plugins: {
'react-native-a11y': reactNativeA11y,
},
rules: {
'react-native-a11y/has-accessibility-hint': 'off',
'react-native-a11y/has-accessibility-props': 'error',
'react-native-a11y/has-valid-accessibility-actions': 'error',
'react-native-a11y/has-valid-accessibility-descriptors': 'error',
'react-native-a11y/has-valid-accessibility-ignores-invert-colors': 'error',
'react-native-a11y/has-valid-accessibility-live-region': 'error',
'react-native-a11y/has-valid-accessibility-role': 'error',
'react-native-a11y/has-valid-accessibility-state': 'error',
'react-native-a11y/has-valid-accessibility-value': 'error',
'react-native-a11y/has-valid-important-for-accessibility': 'error',
'react-native-a11y/no-nested-touchables': 'error',
},
},
{
plugins: {
'simple-import-sort': simpleImportSort,
Expand Down
1,047 changes: 623 additions & 424 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@react-navigation/native": "^7.1.33",
"@react-navigation/native-stack": "^7.14.4",
"@reduxjs/toolkit": "^2.11.2",
"react": "^19.2.3",
"react": "19.2.3",
"react-native": "0.84.1",
"react-native-background-actions": "^4.0.1",
"react-native-gesture-handler": "^2.10.1",
Expand Down Expand Up @@ -69,13 +69,14 @@
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-native-a11y": "^3.5.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-testing-library": "^7.16.0",
"husky": "^9.1.7",
"jest": "^29.6.3",
"lint-staged": "^16.3.1",
"prettier": "^3.8.1",
"react-test-renderer": "^19.2.3",
"react-test-renderer": "19.2.3",
"redux-mock-store": "^1.5.4",
"ts-jest": "^29.1.0",
"typescript": "^5.8.3",
Expand All @@ -84,6 +85,11 @@
"engines": {
"node": ">=20.19.4"
},
"overrides": {
"eslint-plugin-react-native-a11y": {
"eslint": "$eslint"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ export const ExpandableCard: FunctionComponent<{
const styles = useMemo(() => makeStyles(colors), [colors]);

return (
<Pressable testID={testID} style={styles.card} onPress={onPress}>
<Pressable
testID={testID}
style={styles.card}
onPress={onPress}
role='button'
>
{header}
{expanded && <View>{children}</View>}
</Pressable>
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/InfoSidebar/InfoSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const InfoSidebar: FunctionComponent<InfoSidebarProps> = ({
onRequestClose={dismiss}
>
<View style={styles.overlay}>
<Pressable style={styles.backdrop} onPress={dismiss} />
<Pressable style={styles.backdrop} onPress={dismiss} role='none' />
<Animated.View
testID={INFO_SIDEBAR}
style={[styles.sidebar, { transform: [{ translateX }] }]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const CribStructuralFallback: FunctionComponent<{
testID={`${CRIB_POSITION_CARD}_${pos}`}
onPress={() => onTogglePosition(pos)}
style={styles.resultCard}
role='button'
>
<Text style={styles.resultText}>
{POSITION_LABEL} {pos}
Expand Down
2 changes: 2 additions & 0 deletions src/components/organisms/Keyboard/Keyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export const Keyboard: FunctionComponent = () => {
outlineColor={colors.border}
activeOutlineColor={colors.accent}
theme={{ colors: { onSurfaceVariant: colors.textSecondary } }}
accessibilityRole='search'
/>
<View style={keyboardStyles.pasteButtonRow}>
<Button
Expand Down Expand Up @@ -261,6 +262,7 @@ export const Keyboard: FunctionComponent = () => {
outlineColor={colors.border}
activeOutlineColor={colors.accent}
theme={{ colors: { onSurfaceVariant: colors.textSecondary } }}
accessibilityRole='text'
/>
<View style={keyboardStyles.pasteButtonRow}>
<Button
Expand Down
2 changes: 2 additions & 0 deletions src/components/pages/breakCipher/BreakCipher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ export const BreakCipher: FunctionComponent = () => {
background: cribModalVisible ? 'transparent' : colors.surface,
},
}}
accessibilityRole='text'
/>

<TextInput
Expand All @@ -175,6 +176,7 @@ export const BreakCipher: FunctionComponent = () => {
background: cribModalVisible ? 'transparent' : colors.surface,
},
}}
accessibilityRole='text'
/>

<Button
Expand Down
Loading