oxlint-plugin-react-doctor
v0.2.1
Published
oxlint plugin for React Doctor: diagnose React codebases for security, performance, correctness, accessibility, bundle-size, and architecture issues
Maintainers
Readme
oxlint-plugin-react-doctor
oxlint plugin for React Doctor. Diagnoses React codebases for security, performance, correctness, accessibility, bundle-size, and architecture issues.
This package owns the rule implementations (178 rules across architecture, performance, correctness, security, accessibility, bundle-size, and framework-specific buckets). eslint-plugin-react-doctor wraps these same rules for ESLint, and the full diagnostic CLI lives in react-doctor.
Install
npm install --save-dev oxlint oxlint-plugin-react-doctorpnpm add -D oxlint oxlint-plugin-react-doctoryarn add -D oxlint oxlint-plugin-react-doctorUsage
In .oxlintrc.json:
{
"jsPlugins": [{ "name": "react-doctor", "specifier": "oxlint-plugin-react-doctor" }],
"rules": {
"react-doctor/no-fetch-in-effect": "warn",
"react-doctor/no-derived-state-effect": "warn",
},
}Run oxlint as normal:
npx oxlint .Available rules
The full rule list lives in oxlint-config.ts. All rules are namespaced under react-doctor/*.
Each rule can be set to "error", "warn", or "off":
{
"rules": {
"react-doctor/no-cascading-set-state": "error",
"react-doctor/no-array-index-as-key": "warn",
},
}Want the CLI too?
This package only ships the oxlint plugin. To run React Doctor's full scan (with scoring, JSON reports, agent integration, etc.), use the main CLI:
npx react-doctor@latestSee the React Doctor README for the full feature set.
License
MIT
