@aishware/react-a11y-rules-web
v0.1.0
Published
WCAG 2.2 web accessibility rules that complement eslint-plugin-jsx-a11y — the criteria, structure and focus checks it doesn't cover.
Downloads
33
Maintainers
Readme
@aishware/react-a11y-rules-web
The web rule pack for @aishware/react-a11y —
the WCAG 2.2 criteria, document structure, focus visibility and project-wide
checks that eslint-plugin-jsx-a11y
does not cover. Run jsx-a11y in your ESLint config for standard web a11y
(alt text, ARIA validity, role/element semantics); this pack covers the gaps
with no overlap, so the two run together cleanly.
Covers: color contrast, target size, label-in-name, pointer cancellation,
viewport zoom, meta-refresh, reading order, document structure (heading order,
lists, tables, fieldsets, duplicate landmarks), focus visibility, ARIA
required-context, the WCAG 2.2 form criteria (accessible authentication, error
identification, autocomplete-off), and cross-file htmlFor ↔ id label
resolution (a project-wide pass).
import { analyze } from '@aishware/react-a11y-core';
import { webRules } from '@aishware/react-a11y-rules-web';
const diagnostics = analyze({ code, filename: 'App.tsx', platform: 'web', rules: webRules });Most users want the CLI instead:
@aishware/react-a11y.
Full rule list: https://github.com/1aishwaryasharma/react-a11y/blob/main/docs/rules/web.md
License
MIT
