Skip to content

linter: no-noninteractive-tabindex does not error when the tabIndex value is an expression #22431

@JasonKaz

Description

@JasonKaz

What version of Oxlint are you using?

1.64.0

What command did you run?

No response

What does your .oxlintrc.json (or oxlint.config.ts) config file look like?

{
  "plugins": ["jsx-a11y"],
  "rules": {
    "jsx-a11y/no-noninteractive-tabindex": "error"
  }
}

What happened?

If the tabIndex value is an expression it is not evaluated, so the rule does not trigger. This differs from the eslint implemenation.

Repro can be found here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions