@@ -27,18 +27,18 @@ npx -y react-doctor@latest . --verbose
2727
2828React Doctor runs ** 47+ rules** across these categories:
2929
30- | Category | Examples |
31- | ---| ---|
32- | ** State & Effects** | Derived state in useEffect, cascading setState, missing cleanup |
33- | ** Architecture** | Nested component definitions, giant components, inline render functions |
34- | ** Performance** | Layout property animations, transition-all, large animated blur |
35- | ** Correctness** | Array index as key, conditional rendering bugs |
36- | ** Next.js** | Missing metadata, client-side fetching for server data, async client components |
37- | ** Bundle Size** | Barrel imports, full lodash import, undeferred third-party scripts |
38- | ** Security** | Hardcoded secrets in client code, eval usage |
39- | ** Server** | Missing auth in server actions, blocking operations without after() |
40- | ** Accessibility** | Missing prefers-reduced-motion checks |
41- | ** Dead Code** | Unused files, exports, types, and duplicate exports |
30+ | Category | Examples |
31+ | ------------------- | ------------------------------------------------------------------------------- |
32+ | ** State & Effects** | Derived state in useEffect, cascading setState, missing cleanup |
33+ | ** Architecture** | Nested component definitions, giant components, inline render functions |
34+ | ** Performance** | Layout property animations, transition-all, large animated blur |
35+ | ** Correctness** | Array index as key, conditional rendering bugs |
36+ | ** Next.js** | Missing metadata, client-side fetching for server data, async client components |
37+ | ** Bundle Size** | Barrel imports, full lodash import, undeferred third-party scripts |
38+ | ** Security** | Hardcoded secrets in client code, eval usage |
39+ | ** Server** | Missing auth in server actions, blocking operations without after() |
40+ | ** Accessibility** | Missing prefers-reduced-motion checks |
41+ | ** Dead Code** | Unused files, exports, types, and duplicate exports |
4242
4343## Example output
4444
0 commit comments