Skip to content

[eslint-config-airbnb] jsx-a11y/control-has-associated-label config does not ignore td and th HTML elements #3069

Description

@ZeeshanTamboli

At Material UI, we use eslint-config-airbnb, which includes jsx-a11y pre-defined rules. We’re encountering this error for td and th elements:

A control must be associated with a text label  jsx-a11y/control-has-associated-label

Since td and th are non-interactive, they should be added to the ignoreElements list here and not parsed by jsx-a11y plugin.

This is preventing us from bumping eslint-plugin-jsx-a11y: mui/material-ui#39752.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions