react-doctor icon indicating copy to clipboard operation
react-doctor copied to clipboard

Oxlint config references jsx-a11y/no-noninteractive-element-interactions which doesn't exist in bundled oxlint

Open MeinhartThomas opened this issue 8 months ago • 8 comments

Starting around v0.0.26+, react-doctor fails to complete lint checks due to the hardcoded
oxlint config referencing a rule that doesn't exist in the bundled oxlint version:

✖ Lint checks failed (non-fatal, skipping).
Failed to parse oxlint output: Failed to parse oxlint configuration file.

x Rule 'no-noninteractive-element-interactions' not found in plugin 'jsx_a11y'             

This causes "Score not shown — some checks could not complete" even on clean codebases.

Steps to reproduce

  1. Run npx react-doctor@latest . --yes --verbose --no-dead-code on any React project
  2. Lint checks fail with the error above
  3. Score is suppressed

Expected behavior

Lint checks complete and score is shown. Running [email protected] on the same project
scores 100/100 (the error still occurs but doesn't suppress the score).

Root cause

jsx-a11y/no-noninteractive-element-interactions is listed in createOxlintConfig() in
cli.js, but the bundled oxlint binary doesn't support this rule yet.

Environment

  • react-doctor: 0.0.28, 0.0.29, 0.0.30 (all affected)
  • OS: macOS
  • Runtime: Bun 1.3.11
  • Framework: Vite + React Router v7 + React 19

MeinhartThomas avatar Mar 31 '26 13:03 MeinhartThomas

I met the same issue today on a Next 16.1.6 and React 19.2.3 project with OXLint. no-noninteractive-element-interactions doesn't exist in oxlint, the closest rule is no-static-element-interactions: https://oxc.rs/docs/guide/usage/linter/rules.html

ZeFifi avatar Mar 31 '26 13:03 ZeFifi

+1

woodward54 avatar Mar 31 '26 20:03 woodward54

Also facing this issue

Environment

  • react-doctor v0.0.30
  • OS: macOS (Darwin 25.3.0)
  • Runtime: pnpm 10.30.3
  • React 19.2.0, Vite, TypeScript

reuel88 avatar Mar 31 '26 22:03 reuel88

Also facing the same issue on v0.0.30. The scan fails to complete due to this unsupported rule, so the score is not shown.

hamza-56 avatar Mar 31 '26 22:03 hamza-56

Bump on v0.0.30

schanchani-sumer avatar Apr 01 '26 22:04 schanchani-sumer

bump

briankodzis13 avatar Apr 03 '26 15:04 briankodzis13

bump

overflowy avatar Apr 09 '26 14:04 overflowy

Fixed! Will be pushed out in the next patch.

aidenybai avatar Apr 11 '26 03:04 aidenybai