Skip to content

linter: no-autofocusautoFocus={false} should not be flagged #21912

@mehm8128

Description

@mehm8128

What version of Oxlint are you using?

latest

What command did you run?

No response

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

No response

What happened?

The rule fires on autoFocus={false} and autoFocus="false", but this is a false positive. Setting autoFocus={false} explicitly disables autofocus and should be treated as valid.

Reproduction

refer to playground

Notes

The upstream eslint-plugin-jsx-a11y main branch has already fixed this (commit 91e39b4), and the test suite includes <div autoFocus={false} /> as a valid case. However, the fix has not yet been included in a released version (latest: v6.10.2).

References

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