react-doctor 0.4.1-dev.e181ac1 → 0.4.2-dev.1044e29
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/LICENSE +1 -1
- package/README.md +4 -23
- package/dist/cli.js +1474 -1369
- package/dist/index.js +30 -30
- package/dist/lsp.js +34 -32
- package/dist/skills/react-doctor/SKILL.md +2 -2
- package/dist/skills/{doctor-explain/SKILL.md → react-doctor/references/explain.md} +6 -9
- package/package.json +7 -7
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]="1f673676-aa45-541f-9382-dcf9102ad9d3")}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";
|
|
@@ -2125,8 +2125,8 @@ const isFile = (filePath) => {
|
|
|
2125
2125
|
return false;
|
|
2126
2126
|
}
|
|
2127
2127
|
};
|
|
2128
|
-
const SOURCE_FILE_PATTERN = /\.(tsx?|jsx
|
|
2129
|
-
const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.js$/i;
|
|
2128
|
+
const SOURCE_FILE_PATTERN = /\.(tsx?|jsx?|mts|mjs)$/;
|
|
2129
|
+
const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
|
|
2130
2130
|
const MINIFIED_SNIFF_BYTES = 65536;
|
|
2131
2131
|
const GIT_LS_FILES_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
|
|
2132
2132
|
const IGNORED_DIRECTORIES = new Set([
|
|
@@ -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",
|
|
@@ -4867,51 +4866,51 @@ const FLAGGED_DEPENDENCIES = [
|
|
|
4867
4866
|
{
|
|
4868
4867
|
packageName: "expo-modules-autolinking",
|
|
4869
4868
|
rule: "expo-no-redundant-dependency",
|
|
4870
|
-
message: "\"expo-modules-autolinking\" should not be a direct dependency
|
|
4869
|
+
message: "\"expo-modules-autolinking\" should not be a direct dependency. Expo pins the compatible version through the SDK, and a direct entry can drift to a version that breaks prebuild, Metro, or native builds",
|
|
4871
4870
|
help: "Remove `expo-modules-autolinking` from your package.json"
|
|
4872
4871
|
},
|
|
4873
4872
|
{
|
|
4874
4873
|
packageName: "expo-dev-launcher",
|
|
4875
4874
|
rule: "expo-no-redundant-dependency",
|
|
4876
|
-
message: "\"expo-dev-launcher\" should not be a direct dependency
|
|
4875
|
+
message: "\"expo-dev-launcher\" should not be a direct dependency. `expo-dev-client` pins the compatible launcher, and a direct entry can drift to a version that breaks native builds",
|
|
4877
4876
|
help: "Remove `expo-dev-launcher` and depend on `expo-dev-client` instead"
|
|
4878
4877
|
},
|
|
4879
4878
|
{
|
|
4880
4879
|
packageName: "expo-dev-menu",
|
|
4881
4880
|
rule: "expo-no-redundant-dependency",
|
|
4882
|
-
message: "\"expo-dev-menu\" should not be a direct dependency
|
|
4881
|
+
message: "\"expo-dev-menu\" should not be a direct dependency. `expo-dev-client` pins the compatible dev menu, and a direct entry can drift to a version that breaks native builds",
|
|
4883
4882
|
help: "Remove `expo-dev-menu` and depend on `expo-dev-client` instead"
|
|
4884
4883
|
},
|
|
4885
4884
|
{
|
|
4886
4885
|
packageName: "expo-modules-core",
|
|
4887
4886
|
rule: "expo-no-redundant-dependency",
|
|
4888
|
-
message: "\"expo-modules-core\" should not be a direct dependency
|
|
4887
|
+
message: "\"expo-modules-core\" should not be a direct dependency. Expo pins the compatible native core, and a direct entry can drift to a version that breaks prebuild or native builds",
|
|
4889
4888
|
help: "Remove `expo-modules-core` from your package.json and import from `expo` instead"
|
|
4890
4889
|
},
|
|
4891
4890
|
{
|
|
4892
4891
|
packageName: "@expo/metro-config",
|
|
4893
4892
|
rule: "expo-no-redundant-dependency",
|
|
4894
|
-
message: "\"@expo/metro-config\" should not be a direct dependency
|
|
4893
|
+
message: "\"@expo/metro-config\" should not be a direct dependency. Expo pins the compatible Metro config, and a direct entry can drift to a version that breaks bundling",
|
|
4895
4894
|
help: "Remove `@expo/metro-config` and import `expo/metro-config` in your metro.config.js"
|
|
4896
4895
|
},
|
|
4897
4896
|
{
|
|
4898
4897
|
packageName: "@types/react-native",
|
|
4899
4898
|
rule: "expo-no-redundant-dependency",
|
|
4900
|
-
message: "\"@types/react-native\" should not be installed
|
|
4899
|
+
message: "\"@types/react-native\" should not be installed. React Native ships its own types since SDK 48, so the extra package can introduce duplicate or stale type definitions",
|
|
4901
4900
|
help: "Remove `@types/react-native` from your package.json",
|
|
4902
4901
|
minSdkMajor: 48
|
|
4903
4902
|
},
|
|
4904
4903
|
{
|
|
4905
4904
|
packageName: "@expo/config-plugins",
|
|
4906
4905
|
rule: "expo-no-redundant-dependency",
|
|
4907
|
-
message: "\"@expo/config-plugins\" should not be a direct dependency
|
|
4906
|
+
message: "\"@expo/config-plugins\" should not be a direct dependency. Expo pins the compatible config-plugin API, and a direct entry can drift to a version that breaks prebuild",
|
|
4908
4907
|
help: "Remove `@expo/config-plugins`; config-plugin authors should import from `expo/config-plugins`. See https://github.com/expo/expo/pull/18855",
|
|
4909
4908
|
minSdkMajor: 48
|
|
4910
4909
|
},
|
|
4911
4910
|
{
|
|
4912
4911
|
packageName: "@expo/prebuild-config",
|
|
4913
4912
|
rule: "expo-no-redundant-dependency",
|
|
4914
|
-
message: "\"@expo/prebuild-config\" should not be a direct dependency
|
|
4913
|
+
message: "\"@expo/prebuild-config\" should not be a direct dependency. Expo pins the compatible prebuild config, and a direct entry can drift to a version that breaks prebuild",
|
|
4915
4914
|
help: "Remove `@expo/prebuild-config` from your package.json",
|
|
4916
4915
|
minSdkMajor: 53
|
|
4917
4916
|
},
|
|
@@ -4925,28 +4924,28 @@ const FLAGGED_DEPENDENCIES = [
|
|
|
4925
4924
|
{
|
|
4926
4925
|
packageName: "expo-app-loading",
|
|
4927
4926
|
rule: "expo-no-redundant-dependency",
|
|
4928
|
-
message: "\"expo-app-loading\" was removed in SDK 49",
|
|
4927
|
+
message: "\"expo-app-loading\" was removed in SDK 49, so keeping it can leave imports unresolved after upgrading Expo",
|
|
4929
4928
|
help: "Remove `expo-app-loading` and use `expo-splash-screen` instead. See https://docs.expo.dev/versions/latest/sdk/splash-screen/",
|
|
4930
4929
|
minSdkMajor: 49
|
|
4931
4930
|
},
|
|
4932
4931
|
{
|
|
4933
4932
|
packageName: "expo-firebase-analytics",
|
|
4934
4933
|
rule: "expo-no-redundant-dependency",
|
|
4935
|
-
message: "\"expo-firebase-analytics\" was removed in SDK 48",
|
|
4934
|
+
message: "\"expo-firebase-analytics\" was removed in SDK 48, so keeping it can leave imports unresolved or fail native builds after upgrading Expo",
|
|
4936
4935
|
help: FIREBASE_HELP,
|
|
4937
4936
|
minSdkMajor: 48
|
|
4938
4937
|
},
|
|
4939
4938
|
{
|
|
4940
4939
|
packageName: "expo-firebase-recaptcha",
|
|
4941
4940
|
rule: "expo-no-redundant-dependency",
|
|
4942
|
-
message: "\"expo-firebase-recaptcha\" was removed in SDK 48",
|
|
4941
|
+
message: "\"expo-firebase-recaptcha\" was removed in SDK 48, so keeping it can leave imports unresolved or fail native builds after upgrading Expo",
|
|
4943
4942
|
help: FIREBASE_HELP,
|
|
4944
4943
|
minSdkMajor: 48
|
|
4945
4944
|
},
|
|
4946
4945
|
{
|
|
4947
4946
|
packageName: "expo-firebase-core",
|
|
4948
4947
|
rule: "expo-no-redundant-dependency",
|
|
4949
|
-
message: "\"expo-firebase-core\" was removed in SDK 48",
|
|
4948
|
+
message: "\"expo-firebase-core\" was removed in SDK 48, so keeping it can leave imports unresolved or fail native builds after upgrading Expo",
|
|
4950
4949
|
help: FIREBASE_HELP,
|
|
4951
4950
|
minSdkMajor: 48
|
|
4952
4951
|
}
|
|
@@ -4987,7 +4986,7 @@ const checkExpoGitignore = (context) => {
|
|
|
4987
4986
|
}));
|
|
4988
4987
|
if (findLocalModuleNativeFiles(rootDirectory).find((nativeFilePath) => isPathGitIgnored(rootDirectory, nativeFilePath) === true) !== void 0) diagnostics.push(buildExpoDiagnostic({
|
|
4989
4988
|
rule: "expo-gitignore",
|
|
4990
|
-
message: "The native `ios`/`android` directories of a local Expo module under `modules/` are gitignored
|
|
4989
|
+
message: "The native `ios`/`android` directories of a local Expo module under `modules/` are gitignored, so required native code can be missing from CI or teammate checkouts.",
|
|
4991
4990
|
help: "Use anchored patterns like `/ios` and `/android` in .gitignore so only the top-level native directories are excluded, not those inside `modules/`"
|
|
4992
4991
|
}));
|
|
4993
4992
|
return diagnostics;
|
|
@@ -5049,17 +5048,16 @@ const checkExpoPackageJsonConflicts = (context) => {
|
|
|
5049
5048
|
const conflictingScriptNames = CONFLICTING_SCRIPT_NAMES.filter((scriptName) => Boolean(packageJson.scripts?.[scriptName]));
|
|
5050
5049
|
if (conflictingScriptNames.length > 0) {
|
|
5051
5050
|
const quotedNames = conflictingScriptNames.map((name) => `"${name}"`).join(", ");
|
|
5052
|
-
const shadowsExpoCli = conflictingScriptNames.includes("expo");
|
|
5053
5051
|
diagnostics.push(buildExpoDiagnostic({
|
|
5054
5052
|
rule: "expo-package-json-conflict",
|
|
5055
|
-
message: `package.json defines ${quotedNames} ${conflictingScriptNames.length === 1 ? "as a script that
|
|
5053
|
+
message: `package.json defines ${quotedNames} ${conflictingScriptNames.length === 1 ? "as a script that shadows" : "as scripts that shadow"} Expo/React Native binaries in node_modules/.bin, so tooling can run the local script instead of the expected CLI and fail builds.`,
|
|
5056
5054
|
help: "Rename these scripts so they don't collide with the `expo` / `react-native` binaries"
|
|
5057
5055
|
}));
|
|
5058
5056
|
}
|
|
5059
5057
|
const packageName = packageJson.name;
|
|
5060
5058
|
if (typeof packageName === "string" && context.directDependencyNames.has(packageName)) diagnostics.push(buildExpoDiagnostic({
|
|
5061
5059
|
rule: "expo-package-json-conflict",
|
|
5062
|
-
message: `package.json "name" is "${packageName}", which collides with a dependency of the same name
|
|
5060
|
+
message: `package.json "name" is "${packageName}", which collides with a dependency of the same name, so package self-resolution can shadow the dependency and break imports that expect the installed package.`,
|
|
5063
5061
|
help: "Rename your package so it no longer matches one of its dependencies"
|
|
5064
5062
|
}));
|
|
5065
5063
|
return diagnostics;
|
|
@@ -5130,7 +5128,7 @@ const checkExpoRouterReactNavigation = (context) => {
|
|
|
5130
5128
|
if (reactNavigationNames.length === 0) return [];
|
|
5131
5129
|
return [buildExpoDiagnostic({
|
|
5132
5130
|
rule: "expo-router-no-react-navigation",
|
|
5133
|
-
message: `As of SDK 56, expo-router is no longer compatible with react-navigation,
|
|
5131
|
+
message: `As of SDK 56, expo-router is no longer compatible with directly installed @react-navigation packages, so keeping ${reactNavigationNames.map((name) => `"${name}"`).join(", ")} can break routing or linking behavior after the SDK upgrade.`,
|
|
5134
5132
|
help: "Remove these `@react-navigation/*` packages and replace direct imports with their expo-router equivalents. See https://docs.expo.dev/router/migrate/sdk-55-to-56/"
|
|
5135
5133
|
})];
|
|
5136
5134
|
};
|
|
@@ -5483,7 +5481,9 @@ const highlighter = {
|
|
|
5483
5481
|
gray: import_picocolors.default.gray,
|
|
5484
5482
|
bold: import_picocolors.default.bold
|
|
5485
5483
|
};
|
|
5486
|
-
const
|
|
5484
|
+
const NEXT_ENTRY_FILE_PATTERN = /^(?:\.\/)?(?:src\/)?(?:middleware|proxy)\.(?:tsx?|jsx?|mts|mjs)$/;
|
|
5485
|
+
const shouldIncludeExplicitLintPath = (filePath, project) => JSX_FILE_PATTERN.test(filePath) || project?.framework === "nextjs" && NEXT_ENTRY_FILE_PATTERN.test(filePath);
|
|
5486
|
+
const computeExplicitLintIncludePaths = (includePaths, project) => includePaths.length > 0 ? includePaths.filter((filePath) => shouldIncludeExplicitLintPath(filePath, project)) : void 0;
|
|
5487
5487
|
const LINGUIST_ATTRIBUTE_PATTERN = /^linguist-(?:vendored|generated)(?:=([a-zA-Z0-9]+))?$/i;
|
|
5488
5488
|
const FALSY_VALUES = new Set([
|
|
5489
5489
|
"false",
|
|
@@ -5912,7 +5912,7 @@ const checkDeadCode = async (options) => {
|
|
|
5912
5912
|
plugin: DEAD_CODE_PLUGIN,
|
|
5913
5913
|
rule: "unused-file",
|
|
5914
5914
|
severity: "warning",
|
|
5915
|
-
message: "Unused file
|
|
5915
|
+
message: "Unused file is not reachable from any entry point, so it adds maintenance surface without shipping any code.",
|
|
5916
5916
|
help: "Delete the file if it is truly unreachable, or import it from an entry point.",
|
|
5917
5917
|
line: 0,
|
|
5918
5918
|
column: 0,
|
|
@@ -5925,7 +5925,7 @@ const checkDeadCode = async (options) => {
|
|
|
5925
5925
|
plugin: DEAD_CODE_PLUGIN,
|
|
5926
5926
|
rule: unusedExport.isTypeOnly ? "unused-type" : "unused-export",
|
|
5927
5927
|
severity: "warning",
|
|
5928
|
-
message: `Unused ${label}: \`${unusedExport.name}
|
|
5928
|
+
message: `Unused ${label}: \`${unusedExport.name}\` is exported but no module imports it, so it expands the public surface and can mislead callers about supported API.`,
|
|
5929
5929
|
help: "Drop the `export` keyword (or remove the declaration) if no other module uses this symbol.",
|
|
5930
5930
|
line: unusedExport.line,
|
|
5931
5931
|
column: unusedExport.column,
|
|
@@ -5939,7 +5939,7 @@ const checkDeadCode = async (options) => {
|
|
|
5939
5939
|
plugin: DEAD_CODE_PLUGIN,
|
|
5940
5940
|
rule: unusedDependency.isDevDependency ? "unused-dev-dependency" : "unused-dependency",
|
|
5941
5941
|
severity: "warning",
|
|
5942
|
-
message: `Unused ${label}: \`${unusedDependency.name}
|
|
5942
|
+
message: `Unused ${label}: \`${unusedDependency.name}\` is not imported by the project, so it adds install time and supply-chain surface without being used.`,
|
|
5943
5943
|
help: "Remove the dependency from package.json if it is genuinely unused.",
|
|
5944
5944
|
line: 0,
|
|
5945
5945
|
column: 0,
|
|
@@ -5953,7 +5953,7 @@ const checkDeadCode = async (options) => {
|
|
|
5953
5953
|
plugin: DEAD_CODE_PLUGIN,
|
|
5954
5954
|
rule: "circular-dependency",
|
|
5955
5955
|
severity: "warning",
|
|
5956
|
-
message: `Circular import cycle: ${cycle.files.map(toRelative).join(" → ")}
|
|
5956
|
+
message: `Circular import cycle: ${cycle.files.map(toRelative).join(" → ")}. Modules in the cycle can observe partially initialized exports, causing order-dependent bugs.`,
|
|
5957
5957
|
help: "Break the cycle by extracting the shared code into a third module that both files import.",
|
|
5958
5958
|
line: 0,
|
|
5959
5959
|
column: 0,
|
|
@@ -6036,11 +6036,11 @@ const listSourceFilesViaFilesystem = (rootDirectory) => {
|
|
|
6036
6036
|
return filePaths;
|
|
6037
6037
|
};
|
|
6038
6038
|
const listSourceFiles = (rootDirectory) => excludeMinifiedFiles(rootDirectory, listSourceFilesViaGit(rootDirectory) ?? listSourceFilesViaFilesystem(rootDirectory));
|
|
6039
|
-
const resolveLintIncludePaths = (rootDirectory, userConfig) => {
|
|
6039
|
+
const resolveLintIncludePaths = (rootDirectory, userConfig, project) => {
|
|
6040
6040
|
if (!Array.isArray(userConfig?.ignore?.files) || userConfig.ignore.files.length === 0) return;
|
|
6041
6041
|
const ignoredPatterns = compileIgnoredFilePatterns(userConfig);
|
|
6042
6042
|
return listSourceFiles(rootDirectory).filter((filePath) => {
|
|
6043
|
-
if (!
|
|
6043
|
+
if (!shouldIncludeExplicitLintPath(filePath, project)) return false;
|
|
6044
6044
|
return !isFileIgnoredByPatterns(filePath, rootDirectory, ignoredPatterns);
|
|
6045
6045
|
});
|
|
6046
6046
|
};
|
|
@@ -8392,7 +8392,7 @@ const runInspect = (input, hooks = {}) => Effect.gen(function* () {
|
|
|
8392
8392
|
directory: scanDirectory,
|
|
8393
8393
|
repo
|
|
8394
8394
|
}).pipe(Effect.orElseSucceed(() => null)) : Effect.succeed(null));
|
|
8395
|
-
const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 :
|
|
8395
|
+
const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 : computeExplicitLintIncludePaths([...input.includePaths], project)) ?? resolveLintIncludePaths(scanDirectory, resolvedConfig.config, project);
|
|
8396
8396
|
const scannedFilePaths = input.suppressScanSummary ? (lintIncludePaths ?? (yield* filesService.listSourceFiles(scanDirectory))).map((relativePath) => path$1.resolve(scanDirectory, relativePath)) : [];
|
|
8397
8397
|
const beforeLint = hooks.beforeLint ?? NO_HOOKS.beforeLint;
|
|
8398
8398
|
const afterLint = hooks.afterLint ?? NO_HOOKS.afterLint;
|
|
@@ -8990,4 +8990,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
8990
8990
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
8991
8991
|
|
|
8992
8992
|
//# sourceMappingURL=index.js.map
|
|
8993
|
-
//# debugId=
|
|
8993
|
+
//# debugId=1f673676-aa45-541f-9382-dcf9102ad9d3
|
package/dist/lsp.js
CHANGED
|
@@ -2136,8 +2136,8 @@ const isFile = (filePath) => {
|
|
|
2136
2136
|
return false;
|
|
2137
2137
|
}
|
|
2138
2138
|
};
|
|
2139
|
-
const SOURCE_FILE_PATTERN = /\.(tsx?|jsx
|
|
2140
|
-
const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.js$/i;
|
|
2139
|
+
const SOURCE_FILE_PATTERN = /\.(tsx?|jsx?|mts|mjs)$/;
|
|
2140
|
+
const GENERATED_BUNDLE_FILE_PATTERN = /\.(iife|umd|global|min)\.m?js$/i;
|
|
2141
2141
|
const MINIFIED_SNIFF_BYTES = 65536;
|
|
2142
2142
|
const GIT_LS_FILES_MAX_BUFFER_BYTES = 50 * 1024 * 1024;
|
|
2143
2143
|
const IGNORED_DIRECTORIES = new Set([
|
|
@@ -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",
|
|
@@ -4804,51 +4803,51 @@ const FLAGGED_DEPENDENCIES = [
|
|
|
4804
4803
|
{
|
|
4805
4804
|
packageName: "expo-modules-autolinking",
|
|
4806
4805
|
rule: "expo-no-redundant-dependency",
|
|
4807
|
-
message: "\"expo-modules-autolinking\" should not be a direct dependency
|
|
4806
|
+
message: "\"expo-modules-autolinking\" should not be a direct dependency. Expo pins the compatible version through the SDK, and a direct entry can drift to a version that breaks prebuild, Metro, or native builds",
|
|
4808
4807
|
help: "Remove `expo-modules-autolinking` from your package.json"
|
|
4809
4808
|
},
|
|
4810
4809
|
{
|
|
4811
4810
|
packageName: "expo-dev-launcher",
|
|
4812
4811
|
rule: "expo-no-redundant-dependency",
|
|
4813
|
-
message: "\"expo-dev-launcher\" should not be a direct dependency
|
|
4812
|
+
message: "\"expo-dev-launcher\" should not be a direct dependency. `expo-dev-client` pins the compatible launcher, and a direct entry can drift to a version that breaks native builds",
|
|
4814
4813
|
help: "Remove `expo-dev-launcher` and depend on `expo-dev-client` instead"
|
|
4815
4814
|
},
|
|
4816
4815
|
{
|
|
4817
4816
|
packageName: "expo-dev-menu",
|
|
4818
4817
|
rule: "expo-no-redundant-dependency",
|
|
4819
|
-
message: "\"expo-dev-menu\" should not be a direct dependency
|
|
4818
|
+
message: "\"expo-dev-menu\" should not be a direct dependency. `expo-dev-client` pins the compatible dev menu, and a direct entry can drift to a version that breaks native builds",
|
|
4820
4819
|
help: "Remove `expo-dev-menu` and depend on `expo-dev-client` instead"
|
|
4821
4820
|
},
|
|
4822
4821
|
{
|
|
4823
4822
|
packageName: "expo-modules-core",
|
|
4824
4823
|
rule: "expo-no-redundant-dependency",
|
|
4825
|
-
message: "\"expo-modules-core\" should not be a direct dependency
|
|
4824
|
+
message: "\"expo-modules-core\" should not be a direct dependency. Expo pins the compatible native core, and a direct entry can drift to a version that breaks prebuild or native builds",
|
|
4826
4825
|
help: "Remove `expo-modules-core` from your package.json and import from `expo` instead"
|
|
4827
4826
|
},
|
|
4828
4827
|
{
|
|
4829
4828
|
packageName: "@expo/metro-config",
|
|
4830
4829
|
rule: "expo-no-redundant-dependency",
|
|
4831
|
-
message: "\"@expo/metro-config\" should not be a direct dependency
|
|
4830
|
+
message: "\"@expo/metro-config\" should not be a direct dependency. Expo pins the compatible Metro config, and a direct entry can drift to a version that breaks bundling",
|
|
4832
4831
|
help: "Remove `@expo/metro-config` and import `expo/metro-config` in your metro.config.js"
|
|
4833
4832
|
},
|
|
4834
4833
|
{
|
|
4835
4834
|
packageName: "@types/react-native",
|
|
4836
4835
|
rule: "expo-no-redundant-dependency",
|
|
4837
|
-
message: "\"@types/react-native\" should not be installed
|
|
4836
|
+
message: "\"@types/react-native\" should not be installed. React Native ships its own types since SDK 48, so the extra package can introduce duplicate or stale type definitions",
|
|
4838
4837
|
help: "Remove `@types/react-native` from your package.json",
|
|
4839
4838
|
minSdkMajor: 48
|
|
4840
4839
|
},
|
|
4841
4840
|
{
|
|
4842
4841
|
packageName: "@expo/config-plugins",
|
|
4843
4842
|
rule: "expo-no-redundant-dependency",
|
|
4844
|
-
message: "\"@expo/config-plugins\" should not be a direct dependency
|
|
4843
|
+
message: "\"@expo/config-plugins\" should not be a direct dependency. Expo pins the compatible config-plugin API, and a direct entry can drift to a version that breaks prebuild",
|
|
4845
4844
|
help: "Remove `@expo/config-plugins`; config-plugin authors should import from `expo/config-plugins`. See https://github.com/expo/expo/pull/18855",
|
|
4846
4845
|
minSdkMajor: 48
|
|
4847
4846
|
},
|
|
4848
4847
|
{
|
|
4849
4848
|
packageName: "@expo/prebuild-config",
|
|
4850
4849
|
rule: "expo-no-redundant-dependency",
|
|
4851
|
-
message: "\"@expo/prebuild-config\" should not be a direct dependency
|
|
4850
|
+
message: "\"@expo/prebuild-config\" should not be a direct dependency. Expo pins the compatible prebuild config, and a direct entry can drift to a version that breaks prebuild",
|
|
4852
4851
|
help: "Remove `@expo/prebuild-config` from your package.json",
|
|
4853
4852
|
minSdkMajor: 53
|
|
4854
4853
|
},
|
|
@@ -4862,28 +4861,28 @@ const FLAGGED_DEPENDENCIES = [
|
|
|
4862
4861
|
{
|
|
4863
4862
|
packageName: "expo-app-loading",
|
|
4864
4863
|
rule: "expo-no-redundant-dependency",
|
|
4865
|
-
message: "\"expo-app-loading\" was removed in SDK 49",
|
|
4864
|
+
message: "\"expo-app-loading\" was removed in SDK 49, so keeping it can leave imports unresolved after upgrading Expo",
|
|
4866
4865
|
help: "Remove `expo-app-loading` and use `expo-splash-screen` instead. See https://docs.expo.dev/versions/latest/sdk/splash-screen/",
|
|
4867
4866
|
minSdkMajor: 49
|
|
4868
4867
|
},
|
|
4869
4868
|
{
|
|
4870
4869
|
packageName: "expo-firebase-analytics",
|
|
4871
4870
|
rule: "expo-no-redundant-dependency",
|
|
4872
|
-
message: "\"expo-firebase-analytics\" was removed in SDK 48",
|
|
4871
|
+
message: "\"expo-firebase-analytics\" was removed in SDK 48, so keeping it can leave imports unresolved or fail native builds after upgrading Expo",
|
|
4873
4872
|
help: FIREBASE_HELP,
|
|
4874
4873
|
minSdkMajor: 48
|
|
4875
4874
|
},
|
|
4876
4875
|
{
|
|
4877
4876
|
packageName: "expo-firebase-recaptcha",
|
|
4878
4877
|
rule: "expo-no-redundant-dependency",
|
|
4879
|
-
message: "\"expo-firebase-recaptcha\" was removed in SDK 48",
|
|
4878
|
+
message: "\"expo-firebase-recaptcha\" was removed in SDK 48, so keeping it can leave imports unresolved or fail native builds after upgrading Expo",
|
|
4880
4879
|
help: FIREBASE_HELP,
|
|
4881
4880
|
minSdkMajor: 48
|
|
4882
4881
|
},
|
|
4883
4882
|
{
|
|
4884
4883
|
packageName: "expo-firebase-core",
|
|
4885
4884
|
rule: "expo-no-redundant-dependency",
|
|
4886
|
-
message: "\"expo-firebase-core\" was removed in SDK 48",
|
|
4885
|
+
message: "\"expo-firebase-core\" was removed in SDK 48, so keeping it can leave imports unresolved or fail native builds after upgrading Expo",
|
|
4887
4886
|
help: FIREBASE_HELP,
|
|
4888
4887
|
minSdkMajor: 48
|
|
4889
4888
|
}
|
|
@@ -4924,7 +4923,7 @@ const checkExpoGitignore = (context) => {
|
|
|
4924
4923
|
}));
|
|
4925
4924
|
if (findLocalModuleNativeFiles(rootDirectory).find((nativeFilePath) => isPathGitIgnored(rootDirectory, nativeFilePath) === true) !== void 0) diagnostics.push(buildExpoDiagnostic({
|
|
4926
4925
|
rule: "expo-gitignore",
|
|
4927
|
-
message: "The native `ios`/`android` directories of a local Expo module under `modules/` are gitignored
|
|
4926
|
+
message: "The native `ios`/`android` directories of a local Expo module under `modules/` are gitignored, so required native code can be missing from CI or teammate checkouts.",
|
|
4928
4927
|
help: "Use anchored patterns like `/ios` and `/android` in .gitignore so only the top-level native directories are excluded, not those inside `modules/`"
|
|
4929
4928
|
}));
|
|
4930
4929
|
return diagnostics;
|
|
@@ -4986,17 +4985,16 @@ const checkExpoPackageJsonConflicts = (context) => {
|
|
|
4986
4985
|
const conflictingScriptNames = CONFLICTING_SCRIPT_NAMES.filter((scriptName) => Boolean(packageJson.scripts?.[scriptName]));
|
|
4987
4986
|
if (conflictingScriptNames.length > 0) {
|
|
4988
4987
|
const quotedNames = conflictingScriptNames.map((name) => `"${name}"`).join(", ");
|
|
4989
|
-
const shadowsExpoCli = conflictingScriptNames.includes("expo");
|
|
4990
4988
|
diagnostics.push(buildExpoDiagnostic({
|
|
4991
4989
|
rule: "expo-package-json-conflict",
|
|
4992
|
-
message: `package.json defines ${quotedNames} ${conflictingScriptNames.length === 1 ? "as a script that
|
|
4990
|
+
message: `package.json defines ${quotedNames} ${conflictingScriptNames.length === 1 ? "as a script that shadows" : "as scripts that shadow"} Expo/React Native binaries in node_modules/.bin, so tooling can run the local script instead of the expected CLI and fail builds.`,
|
|
4993
4991
|
help: "Rename these scripts so they don't collide with the `expo` / `react-native` binaries"
|
|
4994
4992
|
}));
|
|
4995
4993
|
}
|
|
4996
4994
|
const packageName = packageJson.name;
|
|
4997
4995
|
if (typeof packageName === "string" && context.directDependencyNames.has(packageName)) diagnostics.push(buildExpoDiagnostic({
|
|
4998
4996
|
rule: "expo-package-json-conflict",
|
|
4999
|
-
message: `package.json "name" is "${packageName}", which collides with a dependency of the same name
|
|
4997
|
+
message: `package.json "name" is "${packageName}", which collides with a dependency of the same name, so package self-resolution can shadow the dependency and break imports that expect the installed package.`,
|
|
5000
4998
|
help: "Rename your package so it no longer matches one of its dependencies"
|
|
5001
4999
|
}));
|
|
5002
5000
|
return diagnostics;
|
|
@@ -5067,7 +5065,7 @@ const checkExpoRouterReactNavigation = (context) => {
|
|
|
5067
5065
|
if (reactNavigationNames.length === 0) return [];
|
|
5068
5066
|
return [buildExpoDiagnostic({
|
|
5069
5067
|
rule: "expo-router-no-react-navigation",
|
|
5070
|
-
message: `As of SDK 56, expo-router is no longer compatible with react-navigation,
|
|
5068
|
+
message: `As of SDK 56, expo-router is no longer compatible with directly installed @react-navigation packages, so keeping ${reactNavigationNames.map((name) => `"${name}"`).join(", ")} can break routing or linking behavior after the SDK upgrade.`,
|
|
5071
5069
|
help: "Remove these `@react-navigation/*` packages and replace direct imports with their expo-router equivalents. See https://docs.expo.dev/router/migrate/sdk-55-to-56/"
|
|
5072
5070
|
})];
|
|
5073
5071
|
};
|
|
@@ -5420,7 +5418,9 @@ const highlighter = {
|
|
|
5420
5418
|
gray: import_picocolors.default.gray,
|
|
5421
5419
|
bold: import_picocolors.default.bold
|
|
5422
5420
|
};
|
|
5423
|
-
const
|
|
5421
|
+
const NEXT_ENTRY_FILE_PATTERN = /^(?:\.\/)?(?:src\/)?(?:middleware|proxy)\.(?:tsx?|jsx?|mts|mjs)$/;
|
|
5422
|
+
const shouldIncludeExplicitLintPath = (filePath, project) => JSX_FILE_PATTERN.test(filePath) || project?.framework === "nextjs" && NEXT_ENTRY_FILE_PATTERN.test(filePath);
|
|
5423
|
+
const computeExplicitLintIncludePaths = (includePaths, project) => includePaths.length > 0 ? includePaths.filter((filePath) => shouldIncludeExplicitLintPath(filePath, project)) : void 0;
|
|
5424
5424
|
const LINGUIST_ATTRIBUTE_PATTERN = /^linguist-(?:vendored|generated)(?:=([a-zA-Z0-9]+))?$/i;
|
|
5425
5425
|
const FALSY_VALUES = new Set([
|
|
5426
5426
|
"false",
|
|
@@ -5849,7 +5849,7 @@ const checkDeadCode = async (options) => {
|
|
|
5849
5849
|
plugin: DEAD_CODE_PLUGIN,
|
|
5850
5850
|
rule: "unused-file",
|
|
5851
5851
|
severity: "warning",
|
|
5852
|
-
message: "Unused file
|
|
5852
|
+
message: "Unused file is not reachable from any entry point, so it adds maintenance surface without shipping any code.",
|
|
5853
5853
|
help: "Delete the file if it is truly unreachable, or import it from an entry point.",
|
|
5854
5854
|
line: 0,
|
|
5855
5855
|
column: 0,
|
|
@@ -5862,7 +5862,7 @@ const checkDeadCode = async (options) => {
|
|
|
5862
5862
|
plugin: DEAD_CODE_PLUGIN,
|
|
5863
5863
|
rule: unusedExport.isTypeOnly ? "unused-type" : "unused-export",
|
|
5864
5864
|
severity: "warning",
|
|
5865
|
-
message: `Unused ${label}: \`${unusedExport.name}
|
|
5865
|
+
message: `Unused ${label}: \`${unusedExport.name}\` is exported but no module imports it, so it expands the public surface and can mislead callers about supported API.`,
|
|
5866
5866
|
help: "Drop the `export` keyword (or remove the declaration) if no other module uses this symbol.",
|
|
5867
5867
|
line: unusedExport.line,
|
|
5868
5868
|
column: unusedExport.column,
|
|
@@ -5876,7 +5876,7 @@ const checkDeadCode = async (options) => {
|
|
|
5876
5876
|
plugin: DEAD_CODE_PLUGIN,
|
|
5877
5877
|
rule: unusedDependency.isDevDependency ? "unused-dev-dependency" : "unused-dependency",
|
|
5878
5878
|
severity: "warning",
|
|
5879
|
-
message: `Unused ${label}: \`${unusedDependency.name}
|
|
5879
|
+
message: `Unused ${label}: \`${unusedDependency.name}\` is not imported by the project, so it adds install time and supply-chain surface without being used.`,
|
|
5880
5880
|
help: "Remove the dependency from package.json if it is genuinely unused.",
|
|
5881
5881
|
line: 0,
|
|
5882
5882
|
column: 0,
|
|
@@ -5890,7 +5890,7 @@ const checkDeadCode = async (options) => {
|
|
|
5890
5890
|
plugin: DEAD_CODE_PLUGIN,
|
|
5891
5891
|
rule: "circular-dependency",
|
|
5892
5892
|
severity: "warning",
|
|
5893
|
-
message: `Circular import cycle: ${cycle.files.map(toRelative).join(" → ")}
|
|
5893
|
+
message: `Circular import cycle: ${cycle.files.map(toRelative).join(" → ")}. Modules in the cycle can observe partially initialized exports, causing order-dependent bugs.`,
|
|
5894
5894
|
help: "Break the cycle by extracting the shared code into a third module that both files import.",
|
|
5895
5895
|
line: 0,
|
|
5896
5896
|
column: 0,
|
|
@@ -5973,11 +5973,11 @@ const listSourceFilesViaFilesystem = (rootDirectory) => {
|
|
|
5973
5973
|
return filePaths;
|
|
5974
5974
|
};
|
|
5975
5975
|
const listSourceFiles = (rootDirectory) => excludeMinifiedFiles(rootDirectory, listSourceFilesViaGit(rootDirectory) ?? listSourceFilesViaFilesystem(rootDirectory));
|
|
5976
|
-
const resolveLintIncludePaths = (rootDirectory, userConfig) => {
|
|
5976
|
+
const resolveLintIncludePaths = (rootDirectory, userConfig, project) => {
|
|
5977
5977
|
if (!Array.isArray(userConfig?.ignore?.files) || userConfig.ignore.files.length === 0) return;
|
|
5978
5978
|
const ignoredPatterns = compileIgnoredFilePatterns(userConfig);
|
|
5979
5979
|
return listSourceFiles(rootDirectory).filter((filePath) => {
|
|
5980
|
-
if (!
|
|
5980
|
+
if (!shouldIncludeExplicitLintPath(filePath, project)) return false;
|
|
5981
5981
|
return !isFileIgnoredByPatterns(filePath, rootDirectory, ignoredPatterns);
|
|
5982
5982
|
});
|
|
5983
5983
|
};
|
|
@@ -8329,7 +8329,7 @@ const runInspect = (input, hooks = {}) => Effect.gen(function* () {
|
|
|
8329
8329
|
directory: scanDirectory,
|
|
8330
8330
|
repo
|
|
8331
8331
|
}).pipe(Effect.orElseSucceed(() => null)) : Effect.succeed(null));
|
|
8332
|
-
const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 :
|
|
8332
|
+
const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 : computeExplicitLintIncludePaths([...input.includePaths], project)) ?? resolveLintIncludePaths(scanDirectory, resolvedConfig.config, project);
|
|
8333
8333
|
const scannedFilePaths = input.suppressScanSummary ? (lintIncludePaths ?? (yield* filesService.listSourceFiles(scanDirectory))).map((relativePath) => path$1.resolve(scanDirectory, relativePath)) : [];
|
|
8334
8334
|
const beforeLint = hooks.beforeLint ?? NO_HOOKS.beforeLint;
|
|
8335
8335
|
const afterLint = hooks.afterLint ?? NO_HOOKS.afterLint;
|
|
@@ -8766,7 +8766,7 @@ const getRuleMetadata = (plugin, rule) => {
|
|
|
8766
8766
|
/** Display name used in client-facing messages and progress titles. */
|
|
8767
8767
|
const SERVER_DISPLAY_NAME = "React Doctor";
|
|
8768
8768
|
/** Server version reported in `serverInfo`; injected at build, `dev` from source. */
|
|
8769
|
-
const SERVER_VERSION = "0.4.
|
|
8769
|
+
const SERVER_VERSION = "0.4.2";
|
|
8770
8770
|
/** `Diagnostic.source` shown next to every published diagnostic. */
|
|
8771
8771
|
const DIAGNOSTIC_SOURCE = "react-doctor";
|
|
8772
8772
|
/**
|
|
@@ -8806,7 +8806,9 @@ const SCANNABLE_EXTENSIONS = [
|
|
|
8806
8806
|
".ts",
|
|
8807
8807
|
".tsx",
|
|
8808
8808
|
".js",
|
|
8809
|
-
".jsx"
|
|
8809
|
+
".jsx",
|
|
8810
|
+
".mts",
|
|
8811
|
+
".mjs"
|
|
8810
8812
|
];
|
|
8811
8813
|
/** Filenames whose change invalidates project/config caches. */
|
|
8812
8814
|
const CONFIG_WATCH_FILENAMES = [
|
|
@@ -10854,5 +10856,5 @@ const startLanguageServer = () => {
|
|
|
10854
10856
|
};
|
|
10855
10857
|
//#endregion
|
|
10856
10858
|
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=
|
|
10859
|
+
!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]="fa23cc5b-da68-506d-a911-dedb0ca2a6b4")}catch(e){}}();
|
|
10860
|
+
//# debugId=fa23cc5b-da68-506d-a911-dedb0ca2a6b4
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: react-doctor
|
|
3
3
|
description: Use when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.
|
|
4
|
-
version: "1.
|
|
4
|
+
version: "1.2.0"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# React Doctor
|
|
@@ -34,7 +34,7 @@ Pair it with the matching per-rule prompts at `https://www.react.doctor/prompts/
|
|
|
34
34
|
|
|
35
35
|
## Configuring or explaining rules
|
|
36
36
|
|
|
37
|
-
When the user wants to understand a rule, disagrees with one, or wants to disable / tune which rules run (not fix code),
|
|
37
|
+
When the user wants to understand a rule, disagrees with one, or wants to disable / tune which rules run (not fix code), read [references/explain.md](references/explain.md) and follow it. Start with `npx react-doctor@latest rules explain <rule>`, then apply the narrowest control via `npx react-doctor@latest rules disable|set|category|ignore-tag …`, which edits your `doctor.config.*` (or `package.json#reactDoctor`).
|
|
38
38
|
|
|
39
39
|
## Command
|
|
40
40
|
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
name: doctor-explain
|
|
3
|
-
description: Explain React Doctor rules and configure which ones run via doctor.config.* (or package.json#reactDoctor). Use when the user types `/doctor-explain` or `/doctor-config`, asks why a rule fired, disagrees with a rule, wants to disable/enable a rule, silence a category or tag, tune CI/PR noise, or asks "what does this rule mean". Covers the `react-doctor rules` CLI (list, explain, set, enable, disable, category, ignore-tag) and how config layers combine: ignore.tags disables matching rules before linting, rules over categories sets severity, surfaces controls visibility only.
|
|
4
|
-
version: "1.0.0"
|
|
5
|
-
---
|
|
1
|
+
# Explaining and configuring rules
|
|
6
2
|
|
|
7
|
-
|
|
3
|
+
Explain React Doctor rules and edit `doctor.config.*` safely. Use this when a user
|
|
4
|
+
wants to understand a rule or change which rules run — not for fixing diagnostics
|
|
5
|
+
(that is the main `react-doctor` skill / `/doctor`).
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Triggers: `/doctor-explain`, `/doctor-config`, "why did this rule fire", "I disagree with this rule", "turn this rule off", "stop flagging X", "too noisy", "disable design rules".
|
|
7
|
+
Triggers: "why did this rule fire", "I disagree with this rule", "turn this rule off",
|
|
8
|
+
"stop flagging X", "too noisy", "disable design rules".
|
|
12
9
|
|
|
13
10
|
## Workflow
|
|
14
11
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.4.2-dev.1044e29",
|
|
4
|
+
"description": "Your agent writes bad React. This catches it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
7
7
|
"diagnostics",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://github.com/millionco/react-doctor/issues"
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
24
|
-
"author": "
|
|
24
|
+
"author": "Million Software, Inc",
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
27
|
"url": "https://github.com/millionco/react-doctor.git",
|
|
@@ -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.
|
|
69
|
+
"oxlint-plugin-react-doctor": "0.4.2-dev.1044e29"
|
|
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/
|
|
78
|
-
"@react-doctor/
|
|
79
|
-
"@react-doctor/language-server": "0.4.
|
|
77
|
+
"@react-doctor/core": "0.4.2",
|
|
78
|
+
"@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"
|