Skip to content

☂️ eslint-plugin-jsx-a11y #1141

@Boshen

Description

@Boshen

Warning

This comment is maintained by CI. Do not edit this comment directly.
To update comment template, see https://github.com/oxc-project/oxc/tree/main/tasks/lint_rules

This is the tracking issue for eslint-plugin-jsx-a11y.

There are 36(+ 3 deprecated) rules.

  • 5/31 recommended rules are remaining as TODO
  • 1/5 not recommended rules are remaining as TODO

To get started, run the following command:

just new-jsx-a11y-rule <RULE_NAME>

Then register the rule in crates/oxc_linter/src/rules.rs and also declare_all_lint_rules at the bottom.

Recommended rules

✅: 26, 🚫: 0, ⏳: 0 / total: 31
Status Name
jsx-a11y/alt-text
jsx-a11y/anchor-has-content
jsx-a11y/anchor-is-valid
jsx-a11y/aria-activedescendant-has-tabindex
jsx-a11y/aria-props
jsx-a11y/aria-proptypes
jsx-a11y/aria-role
jsx-a11y/aria-unsupported-elements
jsx-a11y/autocomplete-valid
jsx-a11y/click-events-have-key-events
jsx-a11y/heading-has-content
jsx-a11y/html-has-lang
jsx-a11y/iframe-has-title
jsx-a11y/img-redundant-alt
jsx-a11y/interactive-supports-focus
jsx-a11y/label-has-associated-control
jsx-a11y/media-has-caption
jsx-a11y/mouse-events-have-key-events
jsx-a11y/no-access-key
jsx-a11y/no-autofocus
jsx-a11y/no-distracting-elements
jsx-a11y/no-interactive-element-to-noninteractive-role
jsx-a11y/no-noninteractive-element-interactions
jsx-a11y/no-noninteractive-element-to-interactive-role
jsx-a11y/no-noninteractive-tabindex
jsx-a11y/no-redundant-roles
jsx-a11y/no-static-element-interactions
jsx-a11y/role-has-required-aria-props
jsx-a11y/role-supports-aria-props
jsx-a11y/scope
jsx-a11y/tabindex-no-positive

✅ = Implemented, 🚫 = No need to implement, ⏳ = Fix pending

Not recommended rules

✅: 4, 🚫: 0, ⏳: 0 / total: 5
Status Name
jsx-a11y/anchor-ambiguous-text
jsx-a11y/control-has-associated-label
jsx-a11y/lang
jsx-a11y/no-aria-hidden-on-focusable
jsx-a11y/prefer-tag-over-role

✅ = Implemented, 🚫 = No need to implement, ⏳ = Fix pending

Deprecated rules

✅: 0, 🚫: 3, ⏳: 0 / total: 3
Status Name
🚫 jsx-a11y/accessible-emoji
🚫 jsx-a11y/label-has-for
🚫 jsx-a11y/no-onchange

✅ = Implemented, 🚫 = No need to implement, ⏳ = Fix pending

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - Lintergood first issueExperience Level - Good for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions