feat: setup eslint-plugin-react-native-a11y for accessibility linting - #127
Merged
Merged
Conversation
Setup the a11y linter plugin with ESLint 9 flat config and fix all existing violations by adding appropriate roles to Pressable and TextInput components. Pin react to 19.2.3 to match react-native's bundled renderer. Closes #110 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ESLint 9 flat config uses the ignores property in eslint.config.mjs instead of .eslintignore. All patterns were already covered. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
samdaw13
enabled auto-merge
March 12, 2026 19:20
Prevents peer dependency conflict in CI where react-test-renderer would resolve to 19.2.4 while react is pinned to 19.2.3. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
eslint-plugin-react-native-a11ywith ESLint 9 flat config, enabling accessibility rules for React Native componentsroleoraccessibilityRoletoPressableandTextInputcomponents.eslintignorefile (patterns already covered by flat configignores)reactto19.2.3to match react-native's bundled renderer and add npmoverridesfor the plugin's ESLint peer depCloses #110
Test plan
npm installcompletes cleanlynpm run lintpasses (0 errors)npm testpasses (149/149)🤖 Generated with Claude Code