Skip to content

Commit 90ffa0a

Browse files
committed
llms.txt
1 parent 34d1c5b commit 90ffa0a

File tree

4 files changed

+75
-2
lines changed

4 files changed

+75
-2
lines changed

packages/react-doctor/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# react-doctor
22

3+
## 0.0.14
4+
5+
### Patch Changes
6+
7+
- fix repo
8+
39
## 0.0.13
410

511
### Patch Changes

packages/react-doctor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-doctor",
3-
"version": "0.0.13",
3+
"version": "0.0.14",
44
"description": "Diagnose and fix performance issues in your React app",
55
"author": "Aiden Bai",
66
"license": "MIT",

packages/website/next.config.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
rewrites: async () => {
5+
return {
6+
beforeFiles: [
7+
{
8+
source: "/",
9+
destination: "/llms.txt",
10+
has: [
11+
{
12+
type: "header",
13+
key: "accept",
14+
value: "(.*)text/markdown(.*)",
15+
},
16+
],
17+
},
18+
{
19+
source: "/llm.txt",
20+
destination: "/llms.txt",
21+
},
22+
],
23+
};
24+
},
525
};
626

727
export default nextConfig;

packages/website/public/llms.txt

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# React Doctor
2+
3+
Diagnose React codebase health. Scans for security, performance, correctness, and architecture issues, then outputs a 0–100 score with actionable diagnostics.
4+
5+
## Usage
6+
7+
Run this at your project root:
8+
9+
```bash
10+
npx -y react-doctor@latest .
11+
```
12+
13+
Use `--verbose` to see affected files and line numbers:
14+
15+
```bash
16+
npx -y react-doctor@latest . --verbose
17+
```
18+
19+
Use `--score` to output only the numeric score:
20+
21+
```bash
22+
npx -y react-doctor@latest . --score
23+
```
24+
25+
Use `-y` to skip prompts (required for non-interactive environments like CI or coding agents):
26+
27+
```bash
28+
npx -y react-doctor@latest . -y
29+
```
30+
31+
## Options
32+
33+
```
34+
Usage: react-doctor [directory] [options]
35+
36+
Options:
37+
-v, --version display the version number
38+
--no-lint skip linting
39+
--no-dead-code skip dead code detection
40+
--verbose show file details per rule
41+
--score output only the score
42+
-y, --yes skip prompts, scan all workspace projects
43+
--project <name> select workspace project (comma-separated for multiple)
44+
--fix open Ami to auto-fix all issues
45+
--prompt copy latest scan output to clipboard
46+
-h, --help display help for command
47+
```

0 commit comments

Comments
 (0)