@aishware/react-a11y
v0.1.0
Published
Static accessibility scanner for React and React Native — reports WCAG 2.2 issues with file:line locations.
Maintainers
Readme
@aishware/react-a11y
A static accessibility scanner for React and React Native. It analyzes your
TSX/JSX with the TypeScript compiler and reports WCAG 2.2 issues with
file:line locations — no browser, no rendering, no configuration.
The installed command is react-a11y.
# audit the current project (platform auto-detected from package.json)
npx @aishware/react-a11y .
# explicit platform
npx @aishware/react-a11y apps/mobile --platform native
# machine-readable output
npx @aishware/react-a11y . --format json
npx @aishware/react-a11y . --format sarif --output a11y.sarif # GitHub code scanning
# gate CI: exit 1 when serious or critical issues exist (default)
npx @aishware/react-a11y . --fail-on serious
# apply safe mechanical fixes (e.g. miscapitalized React Native accessibility props)
npx @aishware/react-a11y . --fix
# scan only files changed in git — fast PR checks
npx @aishware/react-a11y . --changed
# every rule with severity + WCAG mapping, or the coverage report
npx @aishware/react-a11y --list-rules
npx @aishware/react-a11y --coverageInstall globally to get the bare react-a11y command:
npm install -g @aishware/react-a11y
react-a11y .Full documentation, rule list and configuration: https://github.com/1aishwaryasharma/react-a11y
License
MIT
