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

Simplify rule set exports

Open aidenybai opened this issue 6 months ago • 2 comments

Summary

  • Consolidate React Doctor framework rule maps and adopted external rule maps into oxlint-plugin-react-doctor/src/rules.ts.
  • Replace the old split rule modules with clear named exports for external consumers.
  • Update core oxlint config and ESLint plugin configs to import the named rule maps directly.

Test plan

  • nr typecheck
  • nr lint
  • nr format:check
  • nr test

[!NOTE] Medium Risk Primarily a refactor of rule-map exports, but it changes the public API consumed by core and the ESLint plugin and could unintentionally alter which rules/severities land in recommended/all configs.

Overview Consolidates React Doctor rule-set and external rule-map exports into a single oxlint-plugin-react-doctor module (rules.ts), removing the older split (rules-by-framework.ts and external-plugin-rules export).

Updates core’s oxlint config generator and eslint-plugin-react-doctor to import the new named exports (RECOMMENDED_RULES, ALL_REACT_DOCTOR_RULES, BUILTIN_*, etc.), and adjusts ESLint flat configs so recommended/docs metadata are based on RECOMMENDED_RULES and all uses ALL_REACT_DOCTOR_RULES.

Reviewed by Cursor Bugbot for commit f815eba9461dbf0d4780a3d9c3ecb341bf86c3c9. Bugbot is set up for automated code reviews on this repo. Configure here.

aidenybai avatar May 17 '26 01:05 aidenybai

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-doctor-website Ready Ready Preview, Comment May 17, 2026 2:51am

vercel[bot] avatar May 17 '26 01:05 vercel[bot]

🔴 React Review — 0/100 (unchanged) · No new issues

Reviewed by react-review for commit 37ddd58df6d4efb44833e67299e708bbd2e30deb. Configure here.

react-doctor[bot] avatar May 17 '26 01:05 react-doctor[bot]