react-doctor 0.4.2-dev.25cc69b → 0.4.2-dev.547e1e4
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/dist/cli.js +8 -26
- package/dist/index.js +2 -3
- package/dist/lsp.js +2 -3
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2ea4b3e1-2440-54c8-ae15-199dbd57bbe6")}catch(e){}}();
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { execFile, execFileSync, spawn, spawnSync } from "node:child_process";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
@@ -6725,7 +6725,6 @@ const LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY = {
|
|
|
6725
6725
|
"react/jsx-no-new-function-as-prop": "react-doctor/jsx-no-new-function-as-prop",
|
|
6726
6726
|
"react/jsx-no-new-object-as-prop": "react-doctor/jsx-no-new-object-as-prop",
|
|
6727
6727
|
"react/jsx-no-script-url": "react-doctor/jsx-no-script-url",
|
|
6728
|
-
"react/jsx-no-target-blank": "react-doctor/jsx-no-target-blank",
|
|
6729
6728
|
"react/jsx-no-undef": "react-doctor/jsx-no-undef",
|
|
6730
6729
|
"react/jsx-no-useless-fragment": "react-doctor/jsx-no-useless-fragment",
|
|
6731
6730
|
"react/jsx-pascal-case": "react-doctor/jsx-pascal-case",
|
|
@@ -12248,7 +12247,7 @@ const makeNoopConsole = () => ({
|
|
|
12248
12247
|
});
|
|
12249
12248
|
//#endregion
|
|
12250
12249
|
//#region src/cli/utils/version.ts
|
|
12251
|
-
const VERSION = "0.4.2-dev.
|
|
12250
|
+
const VERSION = "0.4.2-dev.547e1e4";
|
|
12252
12251
|
//#endregion
|
|
12253
12252
|
//#region src/cli/utils/json-mode.ts
|
|
12254
12253
|
let context = null;
|
|
@@ -12606,13 +12605,13 @@ const isDevVersion = (version) => version === "0.0.0" || version.includes("-");
|
|
|
12606
12605
|
* uploads source-map artifacts under, so stack frames symbolicate. Honors the
|
|
12607
12606
|
* standard `SENTRY_RELEASE` override.
|
|
12608
12607
|
*/
|
|
12609
|
-
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.2-dev.
|
|
12608
|
+
const resolveSentryRelease = () => process.env.SENTRY_RELEASE || `react-doctor@0.4.2-dev.547e1e4`;
|
|
12610
12609
|
/**
|
|
12611
12610
|
* Deployment environment shown in Sentry's environment filter. Defaults to
|
|
12612
12611
|
* `production` for tagged releases and `development` for dev/unbuilt versions,
|
|
12613
12612
|
* overridable via the standard `SENTRY_ENVIRONMENT` env var.
|
|
12614
12613
|
*/
|
|
12615
|
-
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.2-dev.
|
|
12614
|
+
const resolveSentryEnvironment = () => process.env.SENTRY_ENVIRONMENT || (isDevVersion("0.4.2-dev.547e1e4") ? "development" : "production");
|
|
12616
12615
|
/**
|
|
12617
12616
|
* Performance-tracing sample rate in `[0, 1]`. Reads `SENTRY_TRACES_SAMPLE_RATE`
|
|
12618
12617
|
* (set to `0` to disable tracing) and falls back to
|
|
@@ -18041,37 +18040,20 @@ const buildWorkflowContent = () => `# React Doctor — finds security, performan
|
|
|
18041
18040
|
name: React Doctor
|
|
18042
18041
|
|
|
18043
18042
|
on:
|
|
18043
|
+
# Scans the PR's changed files and posts a sticky summary comment listing only the new issues introduced relative to the merge base of the target branch.
|
|
18044
18044
|
pull_request:
|
|
18045
18045
|
types: [opened, synchronize, reopened, ready_for_review]
|
|
18046
|
-
# Scans \`main\` on every push
|
|
18047
|
-
# default branch — useful for tracking the overall number commit-by-commit
|
|
18048
|
-
# and catching regressions that slipped past PR review. PR-specific steps
|
|
18049
|
-
# (the sticky summary comment) are skipped automatically on \`push\` events.
|
|
18050
|
-
# Comment this block out if you only want PR-time scans.
|
|
18046
|
+
# Scans \`main\` on every push to track the health-score trend and catch regressions that slipped past PR review.
|
|
18051
18047
|
push:
|
|
18052
18048
|
branches: [main]
|
|
18053
18049
|
|
|
18054
18050
|
permissions:
|
|
18055
|
-
# \`actions/checkout\` needs this to read the repo source.
|
|
18056
18051
|
contents: read
|
|
18057
|
-
# Two uses: (1) reads the PR's changed-file list so the scan only checks
|
|
18058
|
-
# what the PR touched (faster, scoped to the diff), and (2) posts/updates
|
|
18059
|
-
# the sticky React Doctor summary comment on the PR. Downgrade \`write\` to
|
|
18060
|
-
# \`read\` to keep the changed-file scan but disable comment posting.
|
|
18061
18052
|
pull-requests: write
|
|
18062
|
-
# The sticky-comment step uses GitHub's \`issues.createComment\` /
|
|
18063
|
-
# \`issues.updateComment\` endpoints — those are the same APIs that back PR
|
|
18064
|
-
# comments (PRs are issues under the hood). Not exercised on \`push\`
|
|
18065
|
-
# events, so safe to drop if you only run on \`main\`.
|
|
18066
18053
|
issues: write
|
|
18067
|
-
# Lets the action publish a commit status with the score + error/warning
|
|
18068
|
-
# counts (links to the run). This is how a \`push\` to \`main\` surfaces its
|
|
18069
|
-
# result, since the PR comment is skipped off pull requests. Drop it to
|
|
18070
|
-
# disable the status (or set \`commit-status: false\` below).
|
|
18071
18054
|
statuses: write
|
|
18072
18055
|
|
|
18073
|
-
# Cancels any in-flight scan for the same PR (or branch, on push) the moment
|
|
18074
|
-
# a new commit arrives, so reviewers only ever see the latest run.
|
|
18056
|
+
# Cancels any in-flight scan for the same PR (or branch, on push) the moment a new commit arrives, so reviewers only ever see the latest run.
|
|
18075
18057
|
concurrency:
|
|
18076
18058
|
group: react-doctor-\${{ github.event.pull_request.number || github.ref }}
|
|
18077
18059
|
cancel-in-progress: true
|
|
@@ -21592,4 +21574,4 @@ Promise.resolve().then(() => assertNoRemovedFlags(process.argv)).then(() => prog
|
|
|
21592
21574
|
export {};
|
|
21593
21575
|
|
|
21594
21576
|
//# sourceMappingURL=cli.js.map
|
|
21595
|
-
//# debugId=
|
|
21577
|
+
//# debugId=2ea4b3e1-2440-54c8-ae15-199dbd57bbe6
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="82aa4a60-8b72-5f7a-bdd2-285b7fe0e8f3")}catch(e){}}();
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
5
5
|
import * as fs$1 from "node:fs";
|
|
@@ -3695,7 +3695,6 @@ const LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY = {
|
|
|
3695
3695
|
"react/jsx-no-new-function-as-prop": "react-doctor/jsx-no-new-function-as-prop",
|
|
3696
3696
|
"react/jsx-no-new-object-as-prop": "react-doctor/jsx-no-new-object-as-prop",
|
|
3697
3697
|
"react/jsx-no-script-url": "react-doctor/jsx-no-script-url",
|
|
3698
|
-
"react/jsx-no-target-blank": "react-doctor/jsx-no-target-blank",
|
|
3699
3698
|
"react/jsx-no-undef": "react-doctor/jsx-no-undef",
|
|
3700
3699
|
"react/jsx-no-useless-fragment": "react-doctor/jsx-no-useless-fragment",
|
|
3701
3700
|
"react/jsx-pascal-case": "react-doctor/jsx-pascal-case",
|
|
@@ -8990,4 +8989,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
8990
8989
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
8991
8990
|
|
|
8992
8991
|
//# sourceMappingURL=index.js.map
|
|
8993
|
-
//# debugId=
|
|
8992
|
+
//# debugId=82aa4a60-8b72-5f7a-bdd2-285b7fe0e8f3
|
package/dist/lsp.js
CHANGED
|
@@ -3706,7 +3706,6 @@ const LEGACY_RULE_KEY_TO_NATIVE_RULE_KEY = {
|
|
|
3706
3706
|
"react/jsx-no-new-function-as-prop": "react-doctor/jsx-no-new-function-as-prop",
|
|
3707
3707
|
"react/jsx-no-new-object-as-prop": "react-doctor/jsx-no-new-object-as-prop",
|
|
3708
3708
|
"react/jsx-no-script-url": "react-doctor/jsx-no-script-url",
|
|
3709
|
-
"react/jsx-no-target-blank": "react-doctor/jsx-no-target-blank",
|
|
3710
3709
|
"react/jsx-no-undef": "react-doctor/jsx-no-undef",
|
|
3711
3710
|
"react/jsx-no-useless-fragment": "react-doctor/jsx-no-useless-fragment",
|
|
3712
3711
|
"react/jsx-pascal-case": "react-doctor/jsx-pascal-case",
|
|
@@ -10854,5 +10853,5 @@ const startLanguageServer = () => {
|
|
|
10854
10853
|
};
|
|
10855
10854
|
//#endregion
|
|
10856
10855
|
export { startLanguageServer };
|
|
10857
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
10858
|
-
//# debugId=
|
|
10856
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3b471215-177c-57c1-8d5c-36e42d96995b")}catch(e){}}();
|
|
10857
|
+
//# debugId=3b471215-177c-57c1-8d5c-36e42d96995b
|
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.547e1e4",
|
|
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.547e1e4"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/babel__code-frame": "^7.27.0",
|