react-doctor 0.2.14-dev.fe01e57 → 0.2.15-dev.01ec05c

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 CHANGED
@@ -67,13 +67,25 @@ jobs:
67
67
  - uses: millionco/react-doctor@main
68
68
  ```
69
69
 
70
- React Doctor scans the files changed in the pull request, emits inline annotations, blocks on error-level findings, and updates one sticky PR comment with the score and issue summary. The built-in GitHub token is used automatically; no secret or PAT is required. On forked PRs where GitHub withholds write permissions, the scan and annotations still run, but the sticky comment may be skipped.
71
-
72
70
  [Add GitHub Action →](https://github.com/marketplace/actions/react-doctor)
73
71
 
74
- ### 4. Configure rules in `react-doctor.config.json`
72
+ ### 4. Configure rules in `doctor.config.ts`
73
+
74
+ Configure with a `doctor.config.ts` (or `.js`, `.mjs`, `.cjs`, `.json`, `.jsonc`) in your project root.
75
+
76
+ ```ts
77
+ // doctor.config.ts
78
+ import type { ReactDoctorConfig } from "react-doctor/api";
79
+
80
+ export default {
81
+ lint: true,
82
+ rules: {
83
+ "react-doctor/no-array-index-as-key": "off",
84
+ },
85
+ } satisfies ReactDoctorConfig;
86
+ ```
75
87
 
76
- Point the `$schema` key at `https://react.doctor/schema/config.json` to get autocomplete, hover docs, and typo warnings for every option in any editor that understands JSON Schema.
88
+ Prefer JSON? Use `doctor.config.json`:
77
89
 
78
90
  ```jsonc
79
91
  {
@@ -82,6 +94,17 @@ Point the `$schema` key at `https://react.doctor/schema/config.json` to get auto
82
94
  }
83
95
  ```
84
96
 
97
+ ## Telemetry
98
+
99
+ The CLI reports crashes and basic run traces to [Sentry](https://sentry.io) to help us fix bugs. Events include the version, platform, Node version, how the CLI was invoked (which command, package manager, and whether it ran locally vs. CI vs. a coding agent), the detected project shape (framework, React version, TypeScript, project size — never the contents of your files), and de-minified stack traces.
100
+
101
+ Telemetry is **anonymized** before it leaves your machine: no IP address is collected, your hostname and machine name are stripped, your OS username is removed from every path (your home directory is replaced with `~`), captured local variables are dropped, and known secrets/API keys/emails are masked. No source code or diagnostic findings are sent.
102
+
103
+ Opt out at any time:
104
+
105
+ - `npx react-doctor@latest --no-telemetry` disables Sentry entirely (crash reporting and tracing) for that run, alongside the hosted score API.
106
+ - `SENTRY_TRACES_SAMPLE_RATE=0` keeps crash reporting but turns off performance tracing.
107
+
85
108
  ## Contributing
86
109
 
87
110
  [Issues welcome!](https://github.com/millionco/react-doctor/issues)