Releases: jsx-eslint/eslint-plugin-jsx-a11y
Support eslint v4
v5.1.0 Added thanks to mjaltamirano in CHANGELOG
Include flow directory in published package
for explicit imports in v5.0.2
Resolve Flow issues
Explicitly import flow types to resolve flow failures in consuming projects.
Node <4 support
Swapped Array.includes
for array-includes
polyfill to support node versions <4
Version 5!
[breaking] Refactor img-has-alt
rule into alt-text
rule
[breaking] Rule onclick-has-role
is removed. Replaced with no-static-element-interactions
and no-noninteractive-element-interactions
.
[breaking] Rule onclick-has-focus
is removed. Replaced with interactive-supports-focus
.
[new] - Add rule media-has-caption
rule
[new] - Add ignoreNonDOM
option to no-autofocus
.
[new] - Add rule no-interactive-element-to-noninteractive-role
[new] - Add rule no-noninteractive-element-to-interactive-role
[new] - Add rule no-noninteractive-tabindex
[new] - Configs split into "recommended" and "strict".
[enhanced] - Configuration options added to no-static-element-interactions
and no-noninteractive-element-interactions
. Options allow for fine-tuning of elements and event handlers to check.
New rules + other changes
Add new rules:
jsx-a11y/accessible-emoji
jsx-a11y/aria-activedescendant-has-tabindex
jsx-a11y/iframe-has-title
jsx-a11y/no-autofocus
jsx-a11y/no-distracting-elements (breaking: consolidated no-marquee and no-blink into this rule.)
jsx-a11y/no-redundant-roles
[fix] - redundant-alt to only check full words
[docs] - Documentation upgrades across the board.
[new] - Add ignoreNonDom option to aria-role
[dev] - Add script to scaffold new rule creation.
Fix aria-invalid true/false check
Breaking schema changes
- [breaking] - Update all rule schemas to accept objects. This allows a future schema expansion to not be a breaking change.
- [breaking] - All rules with schemas that accepted a string OR array, now only allows an array.
- [new] -
href-no-hash
accepts new schema propertyspecialLink
to check for customhref
properties on elements. (fixes #76) - [breaking][fix] -
img-has-alt
now prefersalt=""
overrole="presentation"
. You can set both, but not justrole="presentation"
by itself to ensure a11y across all devices.
Note - see rule documentation for updated schemas.
Add aria role `switch`
v2.2.3 2.2.3
x-has-content rules pass with children prop set
v2.2.2 2.2.2