react-doctor 0.0.27 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/dist/cli.js +333 -121
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +70 -17
- package/dist/index.js.map +1 -1
- package/dist/react-doctor-plugin.js +8 -0
- package/dist/react-doctor-plugin.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,6 +48,29 @@ curl -fsSL https://react.doctor/install-skill.sh | bash
|
|
|
48
48
|
|
|
49
49
|
Supports Cursor, Claude Code, Amp Code, Codex, Gemini CLI, OpenCode, Windsurf, and Antigravity.
|
|
50
50
|
|
|
51
|
+
## GitHub Actions
|
|
52
|
+
|
|
53
|
+
```yaml
|
|
54
|
+
- uses: actions/checkout@v5
|
|
55
|
+
with:
|
|
56
|
+
fetch-depth: 0 # required for --diff
|
|
57
|
+
- uses: millionco/react-doctor@main
|
|
58
|
+
with:
|
|
59
|
+
diff: main
|
|
60
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
| Input | Default | Description |
|
|
64
|
+
| -------------- | ------- | ----------------------------------------------------------------- |
|
|
65
|
+
| `directory` | `.` | Project directory to scan |
|
|
66
|
+
| `verbose` | `true` | Show file details per rule |
|
|
67
|
+
| `project` | | Workspace project(s) to scan (comma-separated) |
|
|
68
|
+
| `diff` | | Base branch for diff mode. Only changed files are scanned |
|
|
69
|
+
| `github-token` | | When set on `pull_request` events, posts findings as a PR comment |
|
|
70
|
+
| `node-version` | `20` | Node.js version to use |
|
|
71
|
+
|
|
72
|
+
The action outputs a `score` (0–100) you can use in subsequent steps.
|
|
73
|
+
|
|
51
74
|
## Options
|
|
52
75
|
|
|
53
76
|
```
|