Source
`npx react-doctor . --json` — 336 warnings tagged Architecture.
Breakdown
| Rule |
Count |
| `files` |
327 |
| `exports` |
4 |
| `types` |
4 |
| `duplicates` |
1 |
Why this matters
`registry/default/` is duplicated from `src/components/` — scan flags both copies, doubling violation count and risking drift. Single-source-of-truth fix needed.
Sample
- `registry.ts:0` — `files`
- `styles.css:0`, `themes/default.css:0`, `lib/utils.ts:0` — `files`
- `content/pages/{components,docs,home,philosophy}.mdx:0` — `files`
- `components/component-preview/component-preview.tsx:0` — `files`
- `registry/default/accordion/accordion.tsx:0` — `files`
Acceptance criteria
Memory note
This pairs with the existing "Repeating index.ts edit-not-applied snag" memory — barrel hygiene matters here.
Run
```bash
pnpm doctor --explain registry.ts:0
pnpm doctor --explain styles.css:0
```
Source
`npx react-doctor . --json` — 336 warnings tagged Architecture.
Breakdown
Why this matters
`registry/default/` is duplicated from `src/components/` — scan flags both copies, doubling violation count and risking drift. Single-source-of-truth fix needed.
Sample
Acceptance criteria
Memory note
This pairs with the existing "Repeating index.ts edit-not-applied snag" memory — barrel hygiene matters here.
Run
```bash
pnpm doctor --explain registry.ts:0
pnpm doctor --explain styles.css:0
```