Open Rel1cx opened 9 months ago
- eslint-plugin-react-dom-a11y
Exciting! Maybe this could be considered a replacement for eslint-plugin-jsx-a11y
? Would be great to be able to move off of this plugin too.
If this fits the goals of the ESLint React project, maybe it would also be good to consider additional rules from the eslint-plugin-jsx-a11y
rules
- eslint-plugin-react-dom-a11y
Exciting! Maybe this could be considered a replacement for
eslint-plugin-jsx-a11y
? Would be great to be able to move off of this plugin too.If this fits the goals of the ESLint React project, maybe it would also be good to consider additional rules from the
eslint-plugin-jsx-a11y
rules
The e18e community has launched a new plugin eslint-plugin-jsx-a11y-x, which seems to meet the need for a replacement for eslint-plugin-jsx-a11y. As for eslint-react, if needed, we may consider continuing to migrate Svelte's Accessibility warnings as an alternative, but the priority will be lower.
Hi! Recently, I've been migrating from eslint-plugin-react
to @eslint-react/eslint-plugin
and find its rules very useful. However, I've noticed that that they don't seem to support fixable. Are there any plans to add fixable support in future updates?
Hi! Recently, I've been migrating from
eslint-plugin-react
to@eslint-react/eslint-plugin
and find its rules very useful. However, I've noticed that that they don't seem to support fixable. Are there any plans to add fixable support in future updates?
Thank you for trying out this new ESLint plugin. In fact, we are in the process of adding fixable support, so please follow the updates in the recent versions.
Milestone 3.0 (Draft)
Plugins (with ecological niche explanation)
eslint-plugin-react-x
- Core rules (renderer-agnostic, compatible with x-platform).eslint-plugin-react-dom
- DOM Specific rules for React DOM.eslint-plugin-react-dom-a11y
- Accessibility rules for React DOM.eslint-plugin-react-web-api
- Rules for interacting with Web APIs.eslint-plugin-react-hooks
- The official one from React.eslint-plugin-react-hooks-extra
- Extra rules foreslint-plugin-react-hooks
.eslint-plugin-react-naming-convention
- Optional naming convention rules (can be replaced with other plugins depending on the project).Additional context
Rules in
eslint-plugin-react-dom-a11y
(port Svelte's Accessibility warnings)accesskey
accesskey
on element.aria-activedescendant-has-tabindex
aria-activedescendant
hastabindex
.aria-props
aria-*
props.autofocus
autofocus
on element.click-events-have-key-events
distracting-elements
hidden
hidden
on element.img-redundant-alt
img
alt attribute does not contain the word image, picture, or photo.incorrect-aria-attribute-type
aria-*
attribute type.invalid-attribute
interactive-supports-focus
label-has-associated-control
label
has associated control.media-has-caption
misplaced-role
misplaced-scope
missing-attribute
missing-content
h1
,h2
, etc.) and anchors have content and that the content is accessible to screen readers.mouse-events-have-key-events
no-redundant-roles
no-interactive-element-to-noninteractive-role
no-noninteractive-element-interactions
no-noninteractive-element-to-interactive-role
no-noninteractive-tabindex
no-static-element-interactions
positive-tabindex
role-has-required-aria-props
role
has requiredaria-*
props.role-supports-aria-props
role
supportsaria-*
props.structure
unknown-aria-attribute
aria-*
attribute.unknown-role