eslint-plugin-jsx-a11y

Static ESLint rules that catch JSX accessibility issues before code ships.

Tool
npm
v6.10.2
3,630 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
56 /100 Fair
Development Activity 0
Maintenance 44
Community 80
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
83 /100 Excellent
Architecture 78
Code Quality 78
Innovation 85
Learning Curve 90

eslint-plugin-jsx-a11y is an ESLint plugin providing 39 lint rules that statically analyze JSX for accessibility violations — missing alt text, invalid ARIA roles and props, keyboard-inaccessible interactive elements, and more — directly in the editor and CI, long before a page ever renders.

Widely adopted across the React ecosystem (bundled into eslint-config-airbnb and historically part of Create React App’s default config), it models the WAI-ARIA role and element interaction matrix in pure AST analysis, supports both legacy .eslintrc and flat ESLint config formats, and lets teams enable an entire recommended or strict ruleset with a single config line.

What You Get

  • 39 accessibility lint rules covering ARIA roles/props, alt text, keyboard interaction, labels, language attributes, and more
  • Prebuilt “recommended” and “strict” rule presets for both flat config (eslint.config.js) and legacy .eslintrc setups
  • Per-rule documentation pages under docs/rules/ with rationale, configurable options, and pass/fail code examples
  • Configurable settings for mapping custom components (e.g. a wrapped <Button>) to their native HTML element semantics

Common Use Cases

  • React app accessibility gate in CI — a team adds plugin:jsx-a11y/recommended to fail pull requests when JSX is missing an accessible name or keyboard handler
  • Design-system component audits — mapping custom <IconButton>/<NavLink> wrappers to their native element via the components setting so they get linted like real HTML
  • Legacy codebase remediation — running the plugin without the recommended preset first, then fixing violations rule-by-rule
  • Cross-ESLint-version monorepos — packages still on legacy .eslintrc and others migrated to flat config both lint consistently since the plugin ships both formats

Under The Hood

Architecture

The entry point (src/index.js) aggregates every rule module from src/rules/*.js into a flat allRules map, then exports both a legacy config (configs/legacy-config-base.js) and a flat config (configs/flat-config-base.js) so the plugin works across ESLint’s config formats and major versions (3 through 9). Each rule is a self-contained module implementing ESLint’s meta + create(context) visitor interface, and nearly all of them lean on a shared layer of utility modules under src/util/ — getElementType, isInteractiveElement, getImplicitRole, isHiddenFromScreenReader, and similar helpers — that encode JSX/ARIA semantic knowledge once and reuse it everywhere; this utility layer is the load-bearing abstraction, since changing it would ripple through most of the 39 rules. Configuration (polymorphicPropName, components, attributes) flows through ESLint’s context.settings, keeping rule modules stateless and purely functional.

Tech Stack

Plain JavaScript (no TypeScript), built via Babel (@babel/cli, babel-preset-airbnb) into lib/ for publishing. Runtime dependencies include jsx-ast-utils and ast-types-flow for AST attribute inspection, aria-query and axobject-query for ARIA semantics tables, an embedded axe-core reference for its ruleset knowledge, language-tags for lang validation, damerau-levenshtein for typo suggestions, and a set of ES-spec polyfills (array-includes, array.prototype.flatmap, object.fromentries, string.prototype.includes, safe-regex-test) consistent with the Airbnb ecosystem’s conventions. It peer-depends on eslint across a wide version range and optionally types some internals with Flow. CI runs via GitHub Actions.

Code Quality

Tests run on tape (not Jest or Mocha) through a custom __tests__/__util__/RuleTester.js wrapper around ESLint’s own RuleTester, paired with parserOptionsMapper and ruleOptionsMapperFactory helpers that replay each rule’s test cases across multiple parsers (default espree, babel-eslint, TypeScript) and both legacy/flat config shapes — a deliberately engineered harness given the combinatorial surface of 39 rules times several parser and option variants. Coverage is tracked via Coveralls. Errors surface through ESLint’s own context.report() diagnostic mechanism rather than thrown exceptions. The project lints itself with eslint-plugin-eslint-plugin, and CI runs lint, Flow, unit tests, and example-project checks on every push.

What Makes It Unique

Rather than a generic linter, it encodes the WAI-ARIA role/element interaction matrix precisely enough in pure static analysis to catch cases like a <div role="button"> that isn’t focusable or lacks an accessible name — without ever touching a rendered DOM. Its public API favors low ceremony: adding a single extends line enables an entire curated ruleset, rule ids are consistently namespaced and documented, and both legacy and flat ESLint configs are supported so adoption doesn’t require a config rewrite.

Used by 65 apps in this directory

TypeScript
51%
ZLIB

Portainer

Devops

38,707

A lightweight, open-source web UI that puts Docker, Kubernetes, and Podman management within reach of any team—no CLI expertise required.

View details
93
Repo Health
79
Technical
65
Dependency
Built with
TypeScript 51%
Go 38%
Updated 1 weeks ago
TypeScript
81%
AGPL 3.0

Postiz

Automation · Social Media

37,683

The agentic social media scheduler — AI-powered content creation, 33-platform posting, and team workflows, all self-hosted.

View details
92
Repo Health
70
Technical
63
Dependency
Built with
TypeScript 81%
JavaScript 11%
Updated 1 weeks ago
JavaScript
50%
AGPL 3.0

QRev

AI Agents · CRM

364

Open source AI-first sales platform that replaces Salesforce with autonomous agents handling prospecting, outreach, and lead management at scale.

View details
39
Repo Health
68
Technical
64
Dependency
Built with
JavaScript 50%
Python 28%
TypeScript 14%
Updated 8 months ago
Python
45%
Other

Redash

Analytics · Data Engineering

28,849

Redash lets anyone connect to 35+ SQL and NoSQL data sources, write a query in the browser, and turn the result into a shared dashboard — no separate BI suite required.

View details
91
Repo Health
74
Technical
61
Dependency
Built with
Python 45%
JavaScript 29%
TypeScript 19%
Updated 1 weeks ago
TypeScript
97%
AGPL 3.0

Responsively App

Design Tools · Developer Tools

25,464

Preview and interact with your responsive web design across every device size simultaneously — no more manual resizing.

View details
79
Repo Health
71
Technical
66
Dependency
Built with
TypeScript 97%
Updated 3 weeks ago
TypeScript
97%
Other

Rocket.Chat

Team Chat

46,304

The secure, self-hosted team communications platform for organizations that cannot compromise on data sovereignty.

View details
96
Repo Health
79
Technical
63
Dependency
Built with
TypeScript 97%
Updated 6 days ago
TypeScript
89%
Other

strapi

CMS

73,368

Open-source headless CMS that auto-generates REST and GraphQL APIs from your content models, with a fully customizable admin panel you control.

View details
93
Repo Health
84
Technical
63
Dependency
Built with
TypeScript 89%
JavaScript 11%
Updated 1 weeks ago
TypeScript
72%
Apache 2.0

Supabase

Authentication · Databases · Developer Tools

113,827

The open-source Postgres development platform that replaces Firebase with authentication, real-time APIs, edge functions, storage, and vector embeddings — all built on PostgreSQL.

View details
90
Repo Health
91
Technical
62
Dependency
Built with
TypeScript 72%
MDX 26%
Updated 6 days ago
TypeScript
99%
Other

Teable

Databases · No Code Platforms

21,920

A no-code PostgreSQL database with spreadsheet UX, real-time collaboration, and native AI agents — built for teams that outgrow Airtable.

View details
78
Repo Health
76
Technical
62
Dependency
Built with
TypeScript 99%
Updated 1 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers