react-doctor 0.4.2-dev.547e1e4 → 0.4.2-dev.571ca9c
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 +485 -115
- package/dist/index.js +30 -29
- package/dist/lsp.js +74 -77
- package/package.json +2 -2
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]="e34a2d72-4bb4-5cc3-a375-1c5dd155f5ce")}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([
|
|
@@ -4866,51 +4866,51 @@ const FLAGGED_DEPENDENCIES = [
|
|
|
4866
4866
|
{
|
|
4867
4867
|
packageName: "expo-modules-autolinking",
|
|
4868
4868
|
rule: "expo-no-redundant-dependency",
|
|
4869
|
-
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",
|
|
4870
4870
|
help: "Remove `expo-modules-autolinking` from your package.json"
|
|
4871
4871
|
},
|
|
4872
4872
|
{
|
|
4873
4873
|
packageName: "expo-dev-launcher",
|
|
4874
4874
|
rule: "expo-no-redundant-dependency",
|
|
4875
|
-
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",
|
|
4876
4876
|
help: "Remove `expo-dev-launcher` and depend on `expo-dev-client` instead"
|
|
4877
4877
|
},
|
|
4878
4878
|
{
|
|
4879
4879
|
packageName: "expo-dev-menu",
|
|
4880
4880
|
rule: "expo-no-redundant-dependency",
|
|
4881
|
-
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",
|
|
4882
4882
|
help: "Remove `expo-dev-menu` and depend on `expo-dev-client` instead"
|
|
4883
4883
|
},
|
|
4884
4884
|
{
|
|
4885
4885
|
packageName: "expo-modules-core",
|
|
4886
4886
|
rule: "expo-no-redundant-dependency",
|
|
4887
|
-
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",
|
|
4888
4888
|
help: "Remove `expo-modules-core` from your package.json and import from `expo` instead"
|
|
4889
4889
|
},
|
|
4890
4890
|
{
|
|
4891
4891
|
packageName: "@expo/metro-config",
|
|
4892
4892
|
rule: "expo-no-redundant-dependency",
|
|
4893
|
-
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",
|
|
4894
4894
|
help: "Remove `@expo/metro-config` and import `expo/metro-config` in your metro.config.js"
|
|
4895
4895
|
},
|
|
4896
4896
|
{
|
|
4897
4897
|
packageName: "@types/react-native",
|
|
4898
4898
|
rule: "expo-no-redundant-dependency",
|
|
4899
|
-
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",
|
|
4900
4900
|
help: "Remove `@types/react-native` from your package.json",
|
|
4901
4901
|
minSdkMajor: 48
|
|
4902
4902
|
},
|
|
4903
4903
|
{
|
|
4904
4904
|
packageName: "@expo/config-plugins",
|
|
4905
4905
|
rule: "expo-no-redundant-dependency",
|
|
4906
|
-
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",
|
|
4907
4907
|
help: "Remove `@expo/config-plugins`; config-plugin authors should import from `expo/config-plugins`. See https://github.com/expo/expo/pull/18855",
|
|
4908
4908
|
minSdkMajor: 48
|
|
4909
4909
|
},
|
|
4910
4910
|
{
|
|
4911
4911
|
packageName: "@expo/prebuild-config",
|
|
4912
4912
|
rule: "expo-no-redundant-dependency",
|
|
4913
|
-
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",
|
|
4914
4914
|
help: "Remove `@expo/prebuild-config` from your package.json",
|
|
4915
4915
|
minSdkMajor: 53
|
|
4916
4916
|
},
|
|
@@ -4924,28 +4924,28 @@ const FLAGGED_DEPENDENCIES = [
|
|
|
4924
4924
|
{
|
|
4925
4925
|
packageName: "expo-app-loading",
|
|
4926
4926
|
rule: "expo-no-redundant-dependency",
|
|
4927
|
-
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",
|
|
4928
4928
|
help: "Remove `expo-app-loading` and use `expo-splash-screen` instead. See https://docs.expo.dev/versions/latest/sdk/splash-screen/",
|
|
4929
4929
|
minSdkMajor: 49
|
|
4930
4930
|
},
|
|
4931
4931
|
{
|
|
4932
4932
|
packageName: "expo-firebase-analytics",
|
|
4933
4933
|
rule: "expo-no-redundant-dependency",
|
|
4934
|
-
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",
|
|
4935
4935
|
help: FIREBASE_HELP,
|
|
4936
4936
|
minSdkMajor: 48
|
|
4937
4937
|
},
|
|
4938
4938
|
{
|
|
4939
4939
|
packageName: "expo-firebase-recaptcha",
|
|
4940
4940
|
rule: "expo-no-redundant-dependency",
|
|
4941
|
-
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",
|
|
4942
4942
|
help: FIREBASE_HELP,
|
|
4943
4943
|
minSdkMajor: 48
|
|
4944
4944
|
},
|
|
4945
4945
|
{
|
|
4946
4946
|
packageName: "expo-firebase-core",
|
|
4947
4947
|
rule: "expo-no-redundant-dependency",
|
|
4948
|
-
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",
|
|
4949
4949
|
help: FIREBASE_HELP,
|
|
4950
4950
|
minSdkMajor: 48
|
|
4951
4951
|
}
|
|
@@ -4986,7 +4986,7 @@ const checkExpoGitignore = (context) => {
|
|
|
4986
4986
|
}));
|
|
4987
4987
|
if (findLocalModuleNativeFiles(rootDirectory).find((nativeFilePath) => isPathGitIgnored(rootDirectory, nativeFilePath) === true) !== void 0) diagnostics.push(buildExpoDiagnostic({
|
|
4988
4988
|
rule: "expo-gitignore",
|
|
4989
|
-
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.",
|
|
4990
4990
|
help: "Use anchored patterns like `/ios` and `/android` in .gitignore so only the top-level native directories are excluded, not those inside `modules/`"
|
|
4991
4991
|
}));
|
|
4992
4992
|
return diagnostics;
|
|
@@ -5048,17 +5048,16 @@ const checkExpoPackageJsonConflicts = (context) => {
|
|
|
5048
5048
|
const conflictingScriptNames = CONFLICTING_SCRIPT_NAMES.filter((scriptName) => Boolean(packageJson.scripts?.[scriptName]));
|
|
5049
5049
|
if (conflictingScriptNames.length > 0) {
|
|
5050
5050
|
const quotedNames = conflictingScriptNames.map((name) => `"${name}"`).join(", ");
|
|
5051
|
-
const shadowsExpoCli = conflictingScriptNames.includes("expo");
|
|
5052
5051
|
diagnostics.push(buildExpoDiagnostic({
|
|
5053
5052
|
rule: "expo-package-json-conflict",
|
|
5054
|
-
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.`,
|
|
5055
5054
|
help: "Rename these scripts so they don't collide with the `expo` / `react-native` binaries"
|
|
5056
5055
|
}));
|
|
5057
5056
|
}
|
|
5058
5057
|
const packageName = packageJson.name;
|
|
5059
5058
|
if (typeof packageName === "string" && context.directDependencyNames.has(packageName)) diagnostics.push(buildExpoDiagnostic({
|
|
5060
5059
|
rule: "expo-package-json-conflict",
|
|
5061
|
-
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.`,
|
|
5062
5061
|
help: "Rename your package so it no longer matches one of its dependencies"
|
|
5063
5062
|
}));
|
|
5064
5063
|
return diagnostics;
|
|
@@ -5129,7 +5128,7 @@ const checkExpoRouterReactNavigation = (context) => {
|
|
|
5129
5128
|
if (reactNavigationNames.length === 0) return [];
|
|
5130
5129
|
return [buildExpoDiagnostic({
|
|
5131
5130
|
rule: "expo-router-no-react-navigation",
|
|
5132
|
-
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.`,
|
|
5133
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/"
|
|
5134
5133
|
})];
|
|
5135
5134
|
};
|
|
@@ -5482,7 +5481,9 @@ const highlighter = {
|
|
|
5482
5481
|
gray: import_picocolors.default.gray,
|
|
5483
5482
|
bold: import_picocolors.default.bold
|
|
5484
5483
|
};
|
|
5485
|
-
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;
|
|
5486
5487
|
const LINGUIST_ATTRIBUTE_PATTERN = /^linguist-(?:vendored|generated)(?:=([a-zA-Z0-9]+))?$/i;
|
|
5487
5488
|
const FALSY_VALUES = new Set([
|
|
5488
5489
|
"false",
|
|
@@ -5911,7 +5912,7 @@ const checkDeadCode = async (options) => {
|
|
|
5911
5912
|
plugin: DEAD_CODE_PLUGIN,
|
|
5912
5913
|
rule: "unused-file",
|
|
5913
5914
|
severity: "warning",
|
|
5914
|
-
message: "Unused file
|
|
5915
|
+
message: "Unused file is not reachable from any entry point, so it adds maintenance surface without shipping any code.",
|
|
5915
5916
|
help: "Delete the file if it is truly unreachable, or import it from an entry point.",
|
|
5916
5917
|
line: 0,
|
|
5917
5918
|
column: 0,
|
|
@@ -5924,7 +5925,7 @@ const checkDeadCode = async (options) => {
|
|
|
5924
5925
|
plugin: DEAD_CODE_PLUGIN,
|
|
5925
5926
|
rule: unusedExport.isTypeOnly ? "unused-type" : "unused-export",
|
|
5926
5927
|
severity: "warning",
|
|
5927
|
-
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.`,
|
|
5928
5929
|
help: "Drop the `export` keyword (or remove the declaration) if no other module uses this symbol.",
|
|
5929
5930
|
line: unusedExport.line,
|
|
5930
5931
|
column: unusedExport.column,
|
|
@@ -5938,7 +5939,7 @@ const checkDeadCode = async (options) => {
|
|
|
5938
5939
|
plugin: DEAD_CODE_PLUGIN,
|
|
5939
5940
|
rule: unusedDependency.isDevDependency ? "unused-dev-dependency" : "unused-dependency",
|
|
5940
5941
|
severity: "warning",
|
|
5941
|
-
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.`,
|
|
5942
5943
|
help: "Remove the dependency from package.json if it is genuinely unused.",
|
|
5943
5944
|
line: 0,
|
|
5944
5945
|
column: 0,
|
|
@@ -5952,7 +5953,7 @@ const checkDeadCode = async (options) => {
|
|
|
5952
5953
|
plugin: DEAD_CODE_PLUGIN,
|
|
5953
5954
|
rule: "circular-dependency",
|
|
5954
5955
|
severity: "warning",
|
|
5955
|
-
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.`,
|
|
5956
5957
|
help: "Break the cycle by extracting the shared code into a third module that both files import.",
|
|
5957
5958
|
line: 0,
|
|
5958
5959
|
column: 0,
|
|
@@ -6035,11 +6036,11 @@ const listSourceFilesViaFilesystem = (rootDirectory) => {
|
|
|
6035
6036
|
return filePaths;
|
|
6036
6037
|
};
|
|
6037
6038
|
const listSourceFiles = (rootDirectory) => excludeMinifiedFiles(rootDirectory, listSourceFilesViaGit(rootDirectory) ?? listSourceFilesViaFilesystem(rootDirectory));
|
|
6038
|
-
const resolveLintIncludePaths = (rootDirectory, userConfig) => {
|
|
6039
|
+
const resolveLintIncludePaths = (rootDirectory, userConfig, project) => {
|
|
6039
6040
|
if (!Array.isArray(userConfig?.ignore?.files) || userConfig.ignore.files.length === 0) return;
|
|
6040
6041
|
const ignoredPatterns = compileIgnoredFilePatterns(userConfig);
|
|
6041
6042
|
return listSourceFiles(rootDirectory).filter((filePath) => {
|
|
6042
|
-
if (!
|
|
6043
|
+
if (!shouldIncludeExplicitLintPath(filePath, project)) return false;
|
|
6043
6044
|
return !isFileIgnoredByPatterns(filePath, rootDirectory, ignoredPatterns);
|
|
6044
6045
|
});
|
|
6045
6046
|
};
|
|
@@ -8391,7 +8392,7 @@ const runInspect = (input, hooks = {}) => Effect.gen(function* () {
|
|
|
8391
8392
|
directory: scanDirectory,
|
|
8392
8393
|
repo
|
|
8393
8394
|
}).pipe(Effect.orElseSucceed(() => null)) : Effect.succeed(null));
|
|
8394
|
-
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);
|
|
8395
8396
|
const scannedFilePaths = input.suppressScanSummary ? (lintIncludePaths ?? (yield* filesService.listSourceFiles(scanDirectory))).map((relativePath) => path$1.resolve(scanDirectory, relativePath)) : [];
|
|
8396
8397
|
const beforeLint = hooks.beforeLint ?? NO_HOOKS.beforeLint;
|
|
8397
8398
|
const afterLint = hooks.afterLint ?? NO_HOOKS.afterLint;
|
|
@@ -8989,4 +8990,4 @@ const toJsonReport = (result, options) => buildJsonReport({
|
|
|
8989
8990
|
export { AmbiguousProjectError, NoReactDependencyError, NotADirectoryError, PackageJsonNotFoundError, ProjectNotFoundError, ReactDoctorError, buildJsonReport, buildJsonReportError, clearCaches, defineConfig, diagnose, filterSourceFiles, getDiffInfo, isProjectDiscoveryError, isReactDoctorError, summarizeDiagnostics, toJsonReport };
|
|
8990
8991
|
|
|
8991
8992
|
//# sourceMappingURL=index.js.map
|
|
8992
|
-
//# debugId=
|
|
8993
|
+
//# debugId=e34a2d72-4bb4-5cc3-a375-1c5dd155f5ce
|
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([
|
|
@@ -3376,6 +3376,29 @@ const STAGED_FILES_PROJECT_CONFIG_FILENAMES = [
|
|
|
3376
3376
|
"oxlint.json",
|
|
3377
3377
|
".oxlintrc.json"
|
|
3378
3378
|
];
|
|
3379
|
+
const CONFIG_FINGERPRINT_FILENAMES = [
|
|
3380
|
+
"doctor.config.ts",
|
|
3381
|
+
"doctor.config.mts",
|
|
3382
|
+
"doctor.config.cts",
|
|
3383
|
+
"doctor.config.js",
|
|
3384
|
+
"doctor.config.mjs",
|
|
3385
|
+
"doctor.config.cjs",
|
|
3386
|
+
"doctor.config.json",
|
|
3387
|
+
"doctor.config.jsonc",
|
|
3388
|
+
"react-doctor.config.json",
|
|
3389
|
+
"package.json",
|
|
3390
|
+
"pnpm-workspace.yaml",
|
|
3391
|
+
"tsconfig.json",
|
|
3392
|
+
"tsconfig.base.json",
|
|
3393
|
+
".oxlintrc.json",
|
|
3394
|
+
".eslintrc.json",
|
|
3395
|
+
"pnpm-lock.yaml",
|
|
3396
|
+
"package-lock.json",
|
|
3397
|
+
"yarn.lock",
|
|
3398
|
+
"bun.lock",
|
|
3399
|
+
"bun.lockb",
|
|
3400
|
+
".gitignore"
|
|
3401
|
+
];
|
|
3379
3402
|
const OXLINT_OUTPUT_MAX_BYTES = 50 * 1024 * 1024;
|
|
3380
3403
|
const OXLINT_SPAWN_TIMEOUT_MS = 6e4;
|
|
3381
3404
|
const DEAD_CODE_WORKER_MAX_OLD_SPACE_MB = 8192;
|
|
@@ -4803,51 +4826,51 @@ const FLAGGED_DEPENDENCIES = [
|
|
|
4803
4826
|
{
|
|
4804
4827
|
packageName: "expo-modules-autolinking",
|
|
4805
4828
|
rule: "expo-no-redundant-dependency",
|
|
4806
|
-
message: "\"expo-modules-autolinking\" should not be a direct dependency
|
|
4829
|
+
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",
|
|
4807
4830
|
help: "Remove `expo-modules-autolinking` from your package.json"
|
|
4808
4831
|
},
|
|
4809
4832
|
{
|
|
4810
4833
|
packageName: "expo-dev-launcher",
|
|
4811
4834
|
rule: "expo-no-redundant-dependency",
|
|
4812
|
-
message: "\"expo-dev-launcher\" should not be a direct dependency
|
|
4835
|
+
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",
|
|
4813
4836
|
help: "Remove `expo-dev-launcher` and depend on `expo-dev-client` instead"
|
|
4814
4837
|
},
|
|
4815
4838
|
{
|
|
4816
4839
|
packageName: "expo-dev-menu",
|
|
4817
4840
|
rule: "expo-no-redundant-dependency",
|
|
4818
|
-
message: "\"expo-dev-menu\" should not be a direct dependency
|
|
4841
|
+
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",
|
|
4819
4842
|
help: "Remove `expo-dev-menu` and depend on `expo-dev-client` instead"
|
|
4820
4843
|
},
|
|
4821
4844
|
{
|
|
4822
4845
|
packageName: "expo-modules-core",
|
|
4823
4846
|
rule: "expo-no-redundant-dependency",
|
|
4824
|
-
message: "\"expo-modules-core\" should not be a direct dependency
|
|
4847
|
+
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",
|
|
4825
4848
|
help: "Remove `expo-modules-core` from your package.json and import from `expo` instead"
|
|
4826
4849
|
},
|
|
4827
4850
|
{
|
|
4828
4851
|
packageName: "@expo/metro-config",
|
|
4829
4852
|
rule: "expo-no-redundant-dependency",
|
|
4830
|
-
message: "\"@expo/metro-config\" should not be a direct dependency
|
|
4853
|
+
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",
|
|
4831
4854
|
help: "Remove `@expo/metro-config` and import `expo/metro-config` in your metro.config.js"
|
|
4832
4855
|
},
|
|
4833
4856
|
{
|
|
4834
4857
|
packageName: "@types/react-native",
|
|
4835
4858
|
rule: "expo-no-redundant-dependency",
|
|
4836
|
-
message: "\"@types/react-native\" should not be installed
|
|
4859
|
+
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",
|
|
4837
4860
|
help: "Remove `@types/react-native` from your package.json",
|
|
4838
4861
|
minSdkMajor: 48
|
|
4839
4862
|
},
|
|
4840
4863
|
{
|
|
4841
4864
|
packageName: "@expo/config-plugins",
|
|
4842
4865
|
rule: "expo-no-redundant-dependency",
|
|
4843
|
-
message: "\"@expo/config-plugins\" should not be a direct dependency
|
|
4866
|
+
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",
|
|
4844
4867
|
help: "Remove `@expo/config-plugins`; config-plugin authors should import from `expo/config-plugins`. See https://github.com/expo/expo/pull/18855",
|
|
4845
4868
|
minSdkMajor: 48
|
|
4846
4869
|
},
|
|
4847
4870
|
{
|
|
4848
4871
|
packageName: "@expo/prebuild-config",
|
|
4849
4872
|
rule: "expo-no-redundant-dependency",
|
|
4850
|
-
message: "\"@expo/prebuild-config\" should not be a direct dependency
|
|
4873
|
+
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",
|
|
4851
4874
|
help: "Remove `@expo/prebuild-config` from your package.json",
|
|
4852
4875
|
minSdkMajor: 53
|
|
4853
4876
|
},
|
|
@@ -4861,28 +4884,28 @@ const FLAGGED_DEPENDENCIES = [
|
|
|
4861
4884
|
{
|
|
4862
4885
|
packageName: "expo-app-loading",
|
|
4863
4886
|
rule: "expo-no-redundant-dependency",
|
|
4864
|
-
message: "\"expo-app-loading\" was removed in SDK 49",
|
|
4887
|
+
message: "\"expo-app-loading\" was removed in SDK 49, so keeping it can leave imports unresolved after upgrading Expo",
|
|
4865
4888
|
help: "Remove `expo-app-loading` and use `expo-splash-screen` instead. See https://docs.expo.dev/versions/latest/sdk/splash-screen/",
|
|
4866
4889
|
minSdkMajor: 49
|
|
4867
4890
|
},
|
|
4868
4891
|
{
|
|
4869
4892
|
packageName: "expo-firebase-analytics",
|
|
4870
4893
|
rule: "expo-no-redundant-dependency",
|
|
4871
|
-
message: "\"expo-firebase-analytics\" was removed in SDK 48",
|
|
4894
|
+
message: "\"expo-firebase-analytics\" was removed in SDK 48, so keeping it can leave imports unresolved or fail native builds after upgrading Expo",
|
|
4872
4895
|
help: FIREBASE_HELP,
|
|
4873
4896
|
minSdkMajor: 48
|
|
4874
4897
|
},
|
|
4875
4898
|
{
|
|
4876
4899
|
packageName: "expo-firebase-recaptcha",
|
|
4877
4900
|
rule: "expo-no-redundant-dependency",
|
|
4878
|
-
message: "\"expo-firebase-recaptcha\" was removed in SDK 48",
|
|
4901
|
+
message: "\"expo-firebase-recaptcha\" was removed in SDK 48, so keeping it can leave imports unresolved or fail native builds after upgrading Expo",
|
|
4879
4902
|
help: FIREBASE_HELP,
|
|
4880
4903
|
minSdkMajor: 48
|
|
4881
4904
|
},
|
|
4882
4905
|
{
|
|
4883
4906
|
packageName: "expo-firebase-core",
|
|
4884
4907
|
rule: "expo-no-redundant-dependency",
|
|
4885
|
-
message: "\"expo-firebase-core\" was removed in SDK 48",
|
|
4908
|
+
message: "\"expo-firebase-core\" was removed in SDK 48, so keeping it can leave imports unresolved or fail native builds after upgrading Expo",
|
|
4886
4909
|
help: FIREBASE_HELP,
|
|
4887
4910
|
minSdkMajor: 48
|
|
4888
4911
|
}
|
|
@@ -4923,7 +4946,7 @@ const checkExpoGitignore = (context) => {
|
|
|
4923
4946
|
}));
|
|
4924
4947
|
if (findLocalModuleNativeFiles(rootDirectory).find((nativeFilePath) => isPathGitIgnored(rootDirectory, nativeFilePath) === true) !== void 0) diagnostics.push(buildExpoDiagnostic({
|
|
4925
4948
|
rule: "expo-gitignore",
|
|
4926
|
-
message: "The native `ios`/`android` directories of a local Expo module under `modules/` are gitignored
|
|
4949
|
+
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.",
|
|
4927
4950
|
help: "Use anchored patterns like `/ios` and `/android` in .gitignore so only the top-level native directories are excluded, not those inside `modules/`"
|
|
4928
4951
|
}));
|
|
4929
4952
|
return diagnostics;
|
|
@@ -4985,17 +5008,16 @@ const checkExpoPackageJsonConflicts = (context) => {
|
|
|
4985
5008
|
const conflictingScriptNames = CONFLICTING_SCRIPT_NAMES.filter((scriptName) => Boolean(packageJson.scripts?.[scriptName]));
|
|
4986
5009
|
if (conflictingScriptNames.length > 0) {
|
|
4987
5010
|
const quotedNames = conflictingScriptNames.map((name) => `"${name}"`).join(", ");
|
|
4988
|
-
const shadowsExpoCli = conflictingScriptNames.includes("expo");
|
|
4989
5011
|
diagnostics.push(buildExpoDiagnostic({
|
|
4990
5012
|
rule: "expo-package-json-conflict",
|
|
4991
|
-
message: `package.json defines ${quotedNames} ${conflictingScriptNames.length === 1 ? "as a script that
|
|
5013
|
+
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.`,
|
|
4992
5014
|
help: "Rename these scripts so they don't collide with the `expo` / `react-native` binaries"
|
|
4993
5015
|
}));
|
|
4994
5016
|
}
|
|
4995
5017
|
const packageName = packageJson.name;
|
|
4996
5018
|
if (typeof packageName === "string" && context.directDependencyNames.has(packageName)) diagnostics.push(buildExpoDiagnostic({
|
|
4997
5019
|
rule: "expo-package-json-conflict",
|
|
4998
|
-
message: `package.json "name" is "${packageName}", which collides with a dependency of the same name
|
|
5020
|
+
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.`,
|
|
4999
5021
|
help: "Rename your package so it no longer matches one of its dependencies"
|
|
5000
5022
|
}));
|
|
5001
5023
|
return diagnostics;
|
|
@@ -5066,7 +5088,7 @@ const checkExpoRouterReactNavigation = (context) => {
|
|
|
5066
5088
|
if (reactNavigationNames.length === 0) return [];
|
|
5067
5089
|
return [buildExpoDiagnostic({
|
|
5068
5090
|
rule: "expo-router-no-react-navigation",
|
|
5069
|
-
message: `As of SDK 56, expo-router is no longer compatible with react-navigation,
|
|
5091
|
+
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.`,
|
|
5070
5092
|
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/"
|
|
5071
5093
|
})];
|
|
5072
5094
|
};
|
|
@@ -5419,7 +5441,9 @@ const highlighter = {
|
|
|
5419
5441
|
gray: import_picocolors.default.gray,
|
|
5420
5442
|
bold: import_picocolors.default.bold
|
|
5421
5443
|
};
|
|
5422
|
-
const
|
|
5444
|
+
const NEXT_ENTRY_FILE_PATTERN = /^(?:\.\/)?(?:src\/)?(?:middleware|proxy)\.(?:tsx?|jsx?|mts|mjs)$/;
|
|
5445
|
+
const shouldIncludeExplicitLintPath = (filePath, project) => JSX_FILE_PATTERN.test(filePath) || project?.framework === "nextjs" && NEXT_ENTRY_FILE_PATTERN.test(filePath);
|
|
5446
|
+
const computeExplicitLintIncludePaths = (includePaths, project) => includePaths.length > 0 ? includePaths.filter((filePath) => shouldIncludeExplicitLintPath(filePath, project)) : void 0;
|
|
5423
5447
|
const LINGUIST_ATTRIBUTE_PATTERN = /^linguist-(?:vendored|generated)(?:=([a-zA-Z0-9]+))?$/i;
|
|
5424
5448
|
const FALSY_VALUES = new Set([
|
|
5425
5449
|
"false",
|
|
@@ -5848,7 +5872,7 @@ const checkDeadCode = async (options) => {
|
|
|
5848
5872
|
plugin: DEAD_CODE_PLUGIN,
|
|
5849
5873
|
rule: "unused-file",
|
|
5850
5874
|
severity: "warning",
|
|
5851
|
-
message: "Unused file
|
|
5875
|
+
message: "Unused file is not reachable from any entry point, so it adds maintenance surface without shipping any code.",
|
|
5852
5876
|
help: "Delete the file if it is truly unreachable, or import it from an entry point.",
|
|
5853
5877
|
line: 0,
|
|
5854
5878
|
column: 0,
|
|
@@ -5861,7 +5885,7 @@ const checkDeadCode = async (options) => {
|
|
|
5861
5885
|
plugin: DEAD_CODE_PLUGIN,
|
|
5862
5886
|
rule: unusedExport.isTypeOnly ? "unused-type" : "unused-export",
|
|
5863
5887
|
severity: "warning",
|
|
5864
|
-
message: `Unused ${label}: \`${unusedExport.name}
|
|
5888
|
+
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.`,
|
|
5865
5889
|
help: "Drop the `export` keyword (or remove the declaration) if no other module uses this symbol.",
|
|
5866
5890
|
line: unusedExport.line,
|
|
5867
5891
|
column: unusedExport.column,
|
|
@@ -5875,7 +5899,7 @@ const checkDeadCode = async (options) => {
|
|
|
5875
5899
|
plugin: DEAD_CODE_PLUGIN,
|
|
5876
5900
|
rule: unusedDependency.isDevDependency ? "unused-dev-dependency" : "unused-dependency",
|
|
5877
5901
|
severity: "warning",
|
|
5878
|
-
message: `Unused ${label}: \`${unusedDependency.name}
|
|
5902
|
+
message: `Unused ${label}: \`${unusedDependency.name}\` is not imported by the project, so it adds install time and supply-chain surface without being used.`,
|
|
5879
5903
|
help: "Remove the dependency from package.json if it is genuinely unused.",
|
|
5880
5904
|
line: 0,
|
|
5881
5905
|
column: 0,
|
|
@@ -5889,7 +5913,7 @@ const checkDeadCode = async (options) => {
|
|
|
5889
5913
|
plugin: DEAD_CODE_PLUGIN,
|
|
5890
5914
|
rule: "circular-dependency",
|
|
5891
5915
|
severity: "warning",
|
|
5892
|
-
message: `Circular import cycle: ${cycle.files.map(toRelative).join(" → ")}
|
|
5916
|
+
message: `Circular import cycle: ${cycle.files.map(toRelative).join(" → ")}. Modules in the cycle can observe partially initialized exports, causing order-dependent bugs.`,
|
|
5893
5917
|
help: "Break the cycle by extracting the shared code into a third module that both files import.",
|
|
5894
5918
|
line: 0,
|
|
5895
5919
|
column: 0,
|
|
@@ -5972,11 +5996,11 @@ const listSourceFilesViaFilesystem = (rootDirectory) => {
|
|
|
5972
5996
|
return filePaths;
|
|
5973
5997
|
};
|
|
5974
5998
|
const listSourceFiles = (rootDirectory) => excludeMinifiedFiles(rootDirectory, listSourceFilesViaGit(rootDirectory) ?? listSourceFilesViaFilesystem(rootDirectory));
|
|
5975
|
-
const resolveLintIncludePaths = (rootDirectory, userConfig) => {
|
|
5999
|
+
const resolveLintIncludePaths = (rootDirectory, userConfig, project) => {
|
|
5976
6000
|
if (!Array.isArray(userConfig?.ignore?.files) || userConfig.ignore.files.length === 0) return;
|
|
5977
6001
|
const ignoredPatterns = compileIgnoredFilePatterns(userConfig);
|
|
5978
6002
|
return listSourceFiles(rootDirectory).filter((filePath) => {
|
|
5979
|
-
if (!
|
|
6003
|
+
if (!shouldIncludeExplicitLintPath(filePath, project)) return false;
|
|
5980
6004
|
return !isFileIgnoredByPatterns(filePath, rootDirectory, ignoredPatterns);
|
|
5981
6005
|
});
|
|
5982
6006
|
};
|
|
@@ -8328,7 +8352,7 @@ const runInspect = (input, hooks = {}) => Effect.gen(function* () {
|
|
|
8328
8352
|
directory: scanDirectory,
|
|
8329
8353
|
repo
|
|
8330
8354
|
}).pipe(Effect.orElseSucceed(() => null)) : Effect.succeed(null));
|
|
8331
|
-
const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 :
|
|
8355
|
+
const lintIncludePaths = (input.skipJsxIncludeFilter ? input.includePaths.length > 0 ? [...input.includePaths] : void 0 : computeExplicitLintIncludePaths([...input.includePaths], project)) ?? resolveLintIncludePaths(scanDirectory, resolvedConfig.config, project);
|
|
8332
8356
|
const scannedFilePaths = input.suppressScanSummary ? (lintIncludePaths ?? (yield* filesService.listSourceFiles(scanDirectory))).map((relativePath) => path$1.resolve(scanDirectory, relativePath)) : [];
|
|
8333
8357
|
const beforeLint = hooks.beforeLint ?? NO_HOOKS.beforeLint;
|
|
8334
8358
|
const afterLint = hooks.afterLint ?? NO_HOOKS.afterLint;
|
|
@@ -8760,6 +8784,22 @@ const getRuleMetadata = (plugin, rule) => {
|
|
|
8760
8784
|
defaultEnabled: definition.defaultEnabled ?? true
|
|
8761
8785
|
};
|
|
8762
8786
|
};
|
|
8787
|
+
const computeConfigFingerprint = (projectDirectory, version) => {
|
|
8788
|
+
const parts = [`v=${version}`];
|
|
8789
|
+
let directory = projectDirectory;
|
|
8790
|
+
for (;;) {
|
|
8791
|
+
for (const filename of CONFIG_FINGERPRINT_FILENAMES) try {
|
|
8792
|
+
const stat = fs.statSync(path.join(directory, filename));
|
|
8793
|
+
parts.push(`${directory}/${filename}=${stat.mtimeMs}:${stat.size}`);
|
|
8794
|
+
} catch {
|
|
8795
|
+
continue;
|
|
8796
|
+
}
|
|
8797
|
+
const parent = path.dirname(directory);
|
|
8798
|
+
if (parent === directory) break;
|
|
8799
|
+
directory = parent;
|
|
8800
|
+
}
|
|
8801
|
+
return crypto.createHash("sha1").update(parts.join("|")).digest("hex");
|
|
8802
|
+
};
|
|
8763
8803
|
//#endregion
|
|
8764
8804
|
//#region ../language-server/dist/index.js
|
|
8765
8805
|
/** Display name used in client-facing messages and progress titles. */
|
|
@@ -8805,31 +8845,9 @@ const SCANNABLE_EXTENSIONS = [
|
|
|
8805
8845
|
".ts",
|
|
8806
8846
|
".tsx",
|
|
8807
8847
|
".js",
|
|
8808
|
-
".jsx"
|
|
8809
|
-
|
|
8810
|
-
|
|
8811
|
-
const CONFIG_WATCH_FILENAMES = [
|
|
8812
|
-
"doctor.config.ts",
|
|
8813
|
-
"doctor.config.mts",
|
|
8814
|
-
"doctor.config.cts",
|
|
8815
|
-
"doctor.config.js",
|
|
8816
|
-
"doctor.config.mjs",
|
|
8817
|
-
"doctor.config.cjs",
|
|
8818
|
-
"doctor.config.json",
|
|
8819
|
-
"doctor.config.jsonc",
|
|
8820
|
-
"react-doctor.config.json",
|
|
8821
|
-
"package.json",
|
|
8822
|
-
"pnpm-workspace.yaml",
|
|
8823
|
-
"tsconfig.json",
|
|
8824
|
-
"tsconfig.base.json",
|
|
8825
|
-
".oxlintrc.json",
|
|
8826
|
-
".eslintrc.json",
|
|
8827
|
-
"pnpm-lock.yaml",
|
|
8828
|
-
"package-lock.json",
|
|
8829
|
-
"yarn.lock",
|
|
8830
|
-
"bun.lock",
|
|
8831
|
-
"bun.lockb",
|
|
8832
|
-
".gitignore"
|
|
8848
|
+
".jsx",
|
|
8849
|
+
".mts",
|
|
8850
|
+
".mjs"
|
|
8833
8851
|
];
|
|
8834
8852
|
const SILENT_LOGGER = {
|
|
8835
8853
|
info: () => {},
|
|
@@ -9447,27 +9465,6 @@ const createProjectGraph = (options) => {
|
|
|
9447
9465
|
}
|
|
9448
9466
|
};
|
|
9449
9467
|
};
|
|
9450
|
-
/**
|
|
9451
|
-
* Fingerprint of everything (outside file content) that affects lint
|
|
9452
|
-
* output for a project: the React Doctor version plus the size + mtime of
|
|
9453
|
-
* each config / manifest / lockfile. A change to any of them invalidates
|
|
9454
|
-
* the persisted per-file lint cache, since rules, capabilities, adopted
|
|
9455
|
-
* configs, and dependency-derived settings all flow from these files.
|
|
9456
|
-
*/
|
|
9457
|
-
const computeConfigFingerprint = (projectDirectory, version) => {
|
|
9458
|
-
const parts = [`v=${version}`];
|
|
9459
|
-
let directory = projectDirectory;
|
|
9460
|
-
for (;;) {
|
|
9461
|
-
for (const filename of CONFIG_WATCH_FILENAMES) try {
|
|
9462
|
-
const stat = fs.statSync(path.join(directory, filename));
|
|
9463
|
-
parts.push(`${directory}/${filename}=${stat.mtimeMs}:${stat.size}`);
|
|
9464
|
-
} catch {}
|
|
9465
|
-
const parent = path.dirname(directory);
|
|
9466
|
-
if (parent === directory) break;
|
|
9467
|
-
directory = parent;
|
|
9468
|
-
}
|
|
9469
|
-
return crypto.createHash("sha1").update(parts.join("|")).digest("hex");
|
|
9470
|
-
};
|
|
9471
9468
|
const resolveCacheFilePath = (projectDirectory) => {
|
|
9472
9469
|
const nodeModules = path.join(projectDirectory, "node_modules");
|
|
9473
9470
|
if (fs.existsSync(nodeModules)) return path.join(nodeModules, ".cache", "react-doctor", "lint-cache.json");
|
|
@@ -10251,7 +10248,7 @@ const createServer = (connection, options = {}) => {
|
|
|
10251
10248
|
};
|
|
10252
10249
|
});
|
|
10253
10250
|
connection.onInitialized(() => {
|
|
10254
|
-
if (supportsWatchedFileRegistration) connection.client.register(DidChangeWatchedFilesNotification.type, { watchers: [{ globPattern: `**/{${
|
|
10251
|
+
if (supportsWatchedFileRegistration) connection.client.register(DidChangeWatchedFilesNotification.type, { watchers: [{ globPattern: `**/{${CONFIG_FINGERPRINT_FILENAMES.join(",")}}` }, { globPattern: `**/*.{${SCANNABLE_EXTENSIONS.map((extension) => extension.slice(1)).join(",")}}` }] });
|
|
10255
10252
|
if (nodeBinaryPath === null) logger.warn(`${SERVER_DISPLAY_NAME}: no Node binary compatible with the oxlint native binding was found; lint will be skipped until you switch to a supported Node version.`);
|
|
10256
10253
|
if (supportsWorkspaceFolderChange) connection.workspace.onDidChangeWorkspaceFolders((event) => {
|
|
10257
10254
|
const removedRoots = event.removed.map((folder) => normalizeFsPath(uriToFsPath(folder.uri)));
|
|
@@ -10304,7 +10301,7 @@ const createServer = (connection, options = {}) => {
|
|
|
10304
10301
|
for (const change of params.changes) {
|
|
10305
10302
|
const fsPath = uriToFsPath(change.uri);
|
|
10306
10303
|
const baseName = path.basename(fsPath);
|
|
10307
|
-
if (
|
|
10304
|
+
if (CONFIG_FINGERPRINT_FILENAMES.some((watched) => watched === baseName)) {
|
|
10308
10305
|
configChanged = true;
|
|
10309
10306
|
continue;
|
|
10310
10307
|
}
|
|
@@ -10853,5 +10850,5 @@ const startLanguageServer = () => {
|
|
|
10853
10850
|
};
|
|
10854
10851
|
//#endregion
|
|
10855
10852
|
export { startLanguageServer };
|
|
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]="
|
|
10857
|
-
//# debugId=
|
|
10853
|
+
!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]="6c4ed282-4538-568b-bade-4e4651e27544")}catch(e){}}();
|
|
10854
|
+
//# debugId=6c4ed282-4538-568b-bade-4e4651e27544
|
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.571ca9c",
|
|
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.571ca9c"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@types/babel__code-frame": "^7.27.0",
|