react-doctor 0.4.2-dev.42c339f → 0.4.2-dev.6bfc03a
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 +3 -22
- package/dist/cli.js +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -43,30 +43,11 @@ React Doctor CI (GitHub Actions) reviews every pull request automatically and re
|
|
|
43
43
|
|
|
44
44
|
[Add GitHub Action →](https://react.doctor/ci)
|
|
45
45
|
|
|
46
|
-
### 4. Configure rules
|
|
46
|
+
### 4. Configure rules
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
You can configure which rules to run and how to run them in `doctor.config.ts`.
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
// doctor.config.ts
|
|
52
|
-
import { defineConfig } from "react-doctor/api";
|
|
53
|
-
|
|
54
|
-
export default defineConfig({
|
|
55
|
-
lint: true,
|
|
56
|
-
rules: {
|
|
57
|
-
"react-doctor/no-array-index-as-key": "off",
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Prefer JSON? Use `doctor.config.json`:
|
|
63
|
-
|
|
64
|
-
```jsonc
|
|
65
|
-
{
|
|
66
|
-
"$schema": "https://react.doctor/schema/config.json",
|
|
67
|
-
"lint": true,
|
|
68
|
-
}
|
|
69
|
-
```
|
|
50
|
+
[Learn more →](https://react.doctor/docs/configuration/config-files)
|
|
70
51
|
|
|
71
52
|
## Telemetry
|
|
72
53
|
|
package/dist/cli.js
CHANGED
|
@@ -12248,7 +12248,7 @@ const makeNoopConsole = () => ({
|
|
|
12248
12248
|
});
|
|
12249
12249
|
//#endregion
|
|
12250
12250
|
//#region src/cli/utils/version.ts
|
|
12251
|
-
const VERSION = "0.4.2-dev.
|
|
12251
|
+
const VERSION = "0.4.2-dev.6bfc03a";
|
|
12252
12252
|
//#endregion
|
|
12253
12253
|
//#region src/cli/utils/json-mode.ts
|
|
12254
12254
|
let context = null;
|
|
@@ -12606,13 +12606,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
12606
12606
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
12607
12607
|
* standard `SENTRY_RELEASE` override.
|
|
12608
12608
|
*/
|
|
12609
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.2-dev.
|
|
12609
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.2-dev.6bfc03a`;
|
|
12610
12610
|
/**
|
|
12611
12611
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
12612
12612
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
12613
12613
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
12614
12614
|
*/
|
|
12615
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.2-dev.
|
|
12615
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.2-dev.6bfc03a") ? "development" : "production");
|
|
12616
12616
|
/**
|
|
12617
12617
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
12618
12618
|
* (set to `0` to disable tracing) and falls back to
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.4.2-dev.
|
|
3
|
+
"version": "0.4.2-dev.6bfc03a",
|
|
4
4
|
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"vscode-languageserver": "^9.0.1",
|
|
67
67
|
"vscode-languageserver-textdocument": "^1.0.12",
|
|
68
68
|
"vscode-uri": "^3.1.0",
|
|
69
|
-
"oxlint-plugin-react-doctor": "0.4.2-dev.
|
|
69
|
+
"oxlint-plugin-react-doctor": "0.4.2-dev.6bfc03a"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/babel__code-frame": "^7.27.0",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"@xterm/headless": "^6.0.0",
|
|
75
75
|
"commander": "^14.0.3",
|
|
76
76
|
"ora": "^9.4.0",
|
|
77
|
+
"@react-doctor/api": "0.4.2",
|
|
77
78
|
"@react-doctor/core": "0.4.2",
|
|
78
|
-
"@react-doctor/language-server": "0.4.2"
|
|
79
|
-
"@react-doctor/api": "0.4.2"
|
|
79
|
+
"@react-doctor/language-server": "0.4.2"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": "^20.19.0 || >=22.12.0"
|