feat(linter): mark jsx-a11y rules as recommended (#27690)

Upstreaming recommended state from the upstream plugin.

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>
This commit is contained in:
Cam McHenry authored and GitHub committed 2026-10-15 00:45:20 -04:00
1 parent 199dfdc4dd
commit d7c6b26a90
31 files changed
+31

No files matched your search

@@ -157,6 +157,7 @@ declare_oxc_lint!(
AltText,
jsx_a11y,
correctness,
recommended,
config = AltTextConfigSchema,
version = "0.0.16",
short_description = "Enforce that all elements that require alternative text have meaningful information to relay back to the end user.",
@@ -81,6 +81,7 @@ declare_oxc_lint!(
AnchorHasContent,
jsx_a11y,
correctness,
recommended,
config = AnchorHasContentConfig,
conditional_suggestion,
version = "0.0.18",
@@ -150,6 +150,7 @@ declare_oxc_lint!(
AnchorIsValid,
jsx_a11y,
correctness,
recommended,
config = AnchorIsValidConfig,
version = "0.0.19",
short_description = "Enforce that anchors have a valid `href` and are not used in place of buttons for attaching click logic.",
@@ -65,6 +65,7 @@ declare_oxc_lint!(
AriaActivedescendantHasTabindex,
jsx_a11y,
correctness,
recommended,
version = "0.2.1",
short_description = "Enforce elements with aria-activedescendant are tabbable.",
);
@@ -54,6 +54,7 @@ declare_oxc_lint!(
AriaProps,
jsx_a11y,
correctness,
recommended,
conditional_fix,
version = "0.0.22",
short_description = "Enforces that elements do not use invalid ARIA attributes.",
@@ -63,6 +63,7 @@ declare_oxc_lint!(
AriaProptypes,
jsx_a11y,
correctness,
recommended,
version = "1.36.0",
short_description = "Enforces that elements do not use invalid ARIA state and property values.",
);
@@ -98,6 +98,7 @@ declare_oxc_lint!(
AriaRole,
jsx_a11y,
correctness,
recommended,
config = AriaRoleConfig,
version = "0.1.1",
short_description = "Enforce that elements with ARIA roles use a valid, non-abstract ARIA role.",
@@ -38,6 +38,7 @@ declare_oxc_lint!(
AriaUnsupportedElements,
jsx_a11y,
correctness,
recommended,
fix,
version = "0.1.1",
short_description = "Enforces that reserved DOM elements do not contain ARIA roles, states, or properties.",
@@ -72,6 +72,7 @@ declare_oxc_lint!(
AutocompleteValid,
jsx_a11y,
correctness,
recommended,
config = AutocompleteValidConfig,
version = "0.2.0",
short_description = "Enforces that an element's autocomplete attribute must be a valid value.",
@@ -47,6 +47,7 @@ declare_oxc_lint!(
ClickEventsHaveKeyEvents,
jsx_a11y,
correctness,
recommended,
version = "0.2.1",
short_description = "Enforce onClick is accompanied by at least one of the following: onKeyUp, onKeyDown, onKeyPress.",
);
@@ -68,6 +68,7 @@ declare_oxc_lint!(
HeadingHasContent,
jsx_a11y,
correctness,
recommended,
config = HeadingHasContentConfig,
version = "0.0.19",
short_description = "Enforce that heading elements have content that is accessible to screen readers.",
@@ -54,6 +54,7 @@ declare_oxc_lint!(
HtmlHasLang,
jsx_a11y,
correctness,
recommended,
version = "0.0.18",
short_description = "Ensures that every HTML document has a lang attribute.",
);
@@ -57,6 +57,7 @@ declare_oxc_lint!(
IframeHasTitle,
jsx_a11y,
correctness,
recommended,
version = "0.0.19",
short_description = "Enforce iframe elements have a title attribute.",
);
@@ -102,6 +102,7 @@ declare_oxc_lint!(
ImgRedundantAlt,
jsx_a11y,
correctness,
recommended,
config = ImgRedundantAltConfig,
version = "0.0.19",
short_description = "Enforce that `img` alt attributes do not contain redundant words like \"image\", \"picture\", or \"photo\".",
@@ -92,6 +92,7 @@ declare_oxc_lint!(
InteractiveSupportsFocus,
jsx_a11y,
correctness,
recommended,
suggestion,
config = InteractiveSupportsFocusConfig,
version = "1.63.0",
@@ -129,6 +129,7 @@ declare_oxc_lint!(
LabelHasAssociatedControl,
jsx_a11y,
correctness,
recommended,
config = LabelHasAssociatedControlConfig,
version = "0.9.1",
short_description = "Enforce that a label tag has a text label and an associated control.",
@@ -72,6 +72,7 @@ declare_oxc_lint!(
MediaHasCaption,
jsx_a11y,
correctness,
recommended,
config = MediaHasCaptionConfig,
version = "0.1.1",
short_description = "Checks if `<audio>` and `<video>` elements have a `<track>` element for captions.",
@@ -76,6 +76,7 @@ declare_oxc_lint!(
MouseEventsHaveKeyEvents,
jsx_a11y,
correctness,
recommended,
config = MouseEventsHaveKeyEventsConfig,
version = "0.1.1",
short_description = "Enforce `onMouseOver`/`onMouseOut` are accompanied by `onFocus`/`onBlur`.",
@@ -41,6 +41,7 @@ declare_oxc_lint!(
NoAccessKey,
jsx_a11y,
correctness,
recommended,
suggestion,
version = "0.0.21",
short_description = "Enforces that the `accessKey` prop is not used on any element to avoid complications with keyboard commands used by a screen reader.",
@@ -71,6 +71,7 @@ declare_oxc_lint!(
NoAutofocus,
jsx_a11y,
correctness,
recommended,
suggestion,
config = NoAutofocus,
version = "0.0.19",
@@ -87,6 +87,7 @@ declare_oxc_lint!(
NoDistractingElements,
jsx_a11y,
correctness,
recommended,
config = NoDistractingElementsConfig,
version = "0.0.22",
short_description = "Enforces that no distracting elements are used.",
@@ -75,6 +75,7 @@ declare_oxc_lint!(
NoInteractiveElementToNoninteractiveRole,
jsx_a11y,
correctness,
recommended,
config = NoInteractiveElementToNoninteractiveRoleConfig,
version = "1.65.0",
short_description = "Disallow using a non-interactive WAI-ARIA role on an interactive HTML element.",
@@ -139,6 +139,7 @@ declare_oxc_lint!(
NoNoninteractiveElementInteractions,
jsx_a11y,
correctness,
recommended,
config = NoNoninteractiveElementInteractionsConfig,
version = "1.65.0",
short_description = "Prevents non-interactive HTML elements and elements with non-interactive ARIA roles from being assigned mouse or keyboard event handlers.",
@@ -140,6 +140,7 @@ declare_oxc_lint!(
NoNoninteractiveElementToInteractiveRole,
jsx_a11y,
correctness,
recommended,
config = NoNoninteractiveElementToInteractiveRoleConfig,
version = "1.64.0",
short_description = "Disallow using an interactive WAI-ARIA role on a non-interactive HTML element.",
@@ -90,6 +90,7 @@ declare_oxc_lint!(
NoNoninteractiveTabindex,
jsx_a11y,
correctness,
recommended,
config = NoNoninteractiveTabindexConfig,
version = "0.15.4",
short_description = "This rule checks that non-interactive elements don't have a tabIndex which would make them interactive via keyboard navigation.",
@@ -91,6 +91,7 @@ declare_oxc_lint!(
NoRedundantRoles,
jsx_a11y,
correctness,
recommended,
fix,
config = NoRedundantRolesConfig,
version = "0.2.1",
@@ -81,6 +81,7 @@ declare_oxc_lint!(
NoStaticElementInteractions,
jsx_a11y,
correctness,
recommended,
config = NoStaticElementInteractionsConfig,
version = "1.37.0",
short_description = "Enforces that static HTML elements with event handlers must have appropriate ARIA roles.",
@@ -44,6 +44,7 @@ declare_oxc_lint!(
RoleHasRequiredAriaProps,
jsx_a11y,
correctness,
recommended,
version = "0.2.0",
short_description = "Enforces that elements with ARIA roles must have all required attributes for that role.",
);
@@ -55,6 +55,7 @@ declare_oxc_lint!(
RoleSupportsAriaProps,
jsx_a11y,
correctness,
recommended,
version = "0.2.0",
short_description = "Enforce that elements only contain `aria-*` properties supported by their explicit or implicit role.",
);
@@ -46,6 +46,7 @@ declare_oxc_lint!(
Scope,
jsx_a11y,
correctness,
recommended,
fix,
version = "0.0.19",
short_description = "The scope prop should be used only on `<th>` elements.",
@@ -46,6 +46,7 @@ declare_oxc_lint!(
TabindexNoPositive,
jsx_a11y,
correctness,
recommended,
dangerous_suggestion,
version = "0.0.21",
short_description = "Enforces that positive values for the `tabIndex` attribute are not used in JSX.",