Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

eslint-plugin-jsx-a11y

github.com

  • Free plan
7.2 Club score Visit github.com

What eslint-plugin-jsx-a11y is

eslint-plugin-jsx-a11y is a free package that statically checks JSX in React apps for accessibility issues. It works with ESLint and provides recommended and strict rule configurations, with setup instructions for both legacy .eslintrc files and flat eslint.config.js files. Its documented checks cover alternative text, ARIA properties and roles, labels, keyboard access, and captions for audio and video. Rules can flag clickable elements that are not interactive when they lack keyboard event listeners, as well as interactive handlers on elements that cannot receive focus. Teams can configure mappings from custom component names to DOM element types and from DOM attributes to JSX properties. The plugin also supports an optional polymorphicPropName setting, though its documentation cautions that polymorphic components can make code harder to maintain. Installation instructions cover npm and Yarn, and require ESLint to be installed. The package checks static code rather than the rendered page; its maintainers recommend pairing it with @axe-core/react to check the rendered DOM and testing with assistive technology. The project is MIT-licensed and links to Tidelift for professional support.

Who it suits

This plugin suits React developers using ESLint who want accessibility checks in JSX code. It is useful as one part of an accessibility process that also checks rendered pages and uses assistive technology.

Good to know, and what to watch

  • Free and MIT-licensed.
  • Provides recommended and strict ESLint configurations.
  • Checks ARIA, keyboard access, labels, and media captions.
  • Custom components can be mapped for checking.
  • Supports legacy and flat ESLint configuration.
  • Checks static code, not the rendered DOM.
  • ESLint must also be installed.
  • No mobile testing or manual review tools are included.

MIT-licensed open-source package

Free

Free plan

Getting started

  1. Install ESLint
  2. Install eslint-plugin-jsx-a11y as a development dependency with npm or Yarn
  3. Choose the recommended or strict configuration
  4. Add the plugin through legacy .eslintrc or flat eslint.config.js
  5. Map custom components or DOM attributes when needed
  6. Pair checks with @axe-core/react and assistive-technology testing

Limits to check

The plugin only catches issues present in static JSX code. Its maintainers recommend additional rendered-DOM and assistive-technology testing for broader coverage.

The verdict

eslint-plugin-jsx-a11y can flag a range of accessibility issues while developers work in JSX. Its static checks need to be supplemented with rendered DOM and assistive technology testing.

Questions people ask

How much does eslint-plugin-jsx-a11y cost?

It is free, with a listed price of free plan.

What does it check?

Its rules cover alternative text, ARIA properties and roles, labels, keyboard access, and captions for audio and video.

Which ESLint configurations are supported?

Documentation covers legacy .eslintrc files and flat eslint.config.js setups, including recommended and strict variants.

Can custom React components be checked?

Yes. Configuration can map custom component names to DOM element types and DOM attributes to JSX properties.

Is it open source?

The repository states that the package is licensed under the MIT License.

Does it test rendered pages?

No. It performs static JSX analysis; the maintainers recommend @axe-core/react and assistive-technology testing for additional checks.

What the maker publishes

Accessibility rules
Its documented rules cover topics including alternative text, ARIA properties and roles, keyboard access, labels, and captions for audio and video. source
ARIA checks
Its rules check ARIA properties, values, roles, and role requirements. source
Automated scans
Yes source
Browser extension
No source
Configuration
Users can map custom components to DOM element types and map DOM attributes to JSX properties for checking. source
Configurations
The plugin provides recommended and strict shareable configurations, including flat-config variants. source
Custom components
Configuration can map custom component names to DOM element types so the plugin can check those components. source
ESLint dependency
The installation instructions say to install ESLint before installing the plugin. source
ESLint integration
The README documents legacy .eslintrc and flat eslint.config.js setup. source
Free plan
Yes source
Integrations
The README includes instructions for installation through eslint-config-airbnb and recommends using @axe-core/react to test rendered DOM accessibility. source
Keyboard access checks
Rules flag clickable non-interactive elements without keyboard event listeners and interactive handlers on elements that are not focusable. source
License
The repository states that eslint-plugin-jsx-a11y is licensed under the MIT License. source
License
The repository states that eslint-plugin-jsx-a11y is licensed under the MIT License. source
Manual review tools
No source
Media accessibility
A rule enforces captions by requiring a track for audio and video elements. source
Mobile testing
No source
Package installation
The README provides npm and Yarn commands to install the plugin as a development dependency. source
Package managers
Installation instructions are provided for npm and Yarn, and ESLint must also be installed. source
Polymorphic components
The plugin supports an optional polymorphicPropName setting and warns that polymorphic components can make code harder to maintain. source
Polymorphic components
The plugin can use a configured prop, such as `as`, to determine the element type for rules requiring semantic context; the README cautions that polymorphic components can make code harder to maintain. source
Professional support
The repository links to Tidelift for professional support for the package. source
Purpose
eslint-plugin-jsx-a11y statically checks JSX elements for accessibility issues in React apps. source
Remediation guidance
No source

Checked against the maker's pages on 10 Oct 2026.