@typescript-eslint/typescript-estree 8.45.1-alpha.5 → 8.45.1-alpha.7

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.
@@ -88,7 +88,16 @@ function openClientFileFromProjectService(defaultProjectMatchedFiles, isDefaultP
88
88
  }
89
89
  }
90
90
  if (!isDefaultProjectAllowed) {
91
- throw new Error(`${wasNotFound}. Consider either including it in the tsconfig.json or including it in allowDefaultProject.`);
91
+ const baseMessage = `${wasNotFound}. Consider either including it in the tsconfig.json or including it in allowDefaultProject.`;
92
+ const allowDefaultProject = parseSettings.projectService?.allowDefaultProject;
93
+ if (!allowDefaultProject) {
94
+ throw new Error(baseMessage);
95
+ }
96
+ const relativeFilePath = node_path_1.default.relative(parseSettings.tsconfigRootDir, filePathAbsolute);
97
+ throw new Error([
98
+ baseMessage,
99
+ `allowDefaultProject is set to ${JSON.stringify(allowDefaultProject)}, which does not match '${relativeFilePath}'.`,
100
+ ].join('\n'));
92
101
  }
93
102
  }
94
103
  // No a configFileName indicates this file wasn't included in a TSConfig.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/typescript-estree",
3
- "version": "8.45.1-alpha.5",
3
+ "version": "8.45.1-alpha.7",
4
4
  "description": "A parser that converts TypeScript source code into an ESTree compatible form",
5
5
  "files": [
6
6
  "dist",
@@ -52,10 +52,10 @@
52
52
  "typecheck": "yarn run -BT nx typecheck"
53
53
  },
54
54
  "dependencies": {
55
- "@typescript-eslint/project-service": "8.45.1-alpha.5",
56
- "@typescript-eslint/tsconfig-utils": "8.45.1-alpha.5",
57
- "@typescript-eslint/types": "8.45.1-alpha.5",
58
- "@typescript-eslint/visitor-keys": "8.45.1-alpha.5",
55
+ "@typescript-eslint/project-service": "8.45.1-alpha.7",
56
+ "@typescript-eslint/tsconfig-utils": "8.45.1-alpha.7",
57
+ "@typescript-eslint/types": "8.45.1-alpha.7",
58
+ "@typescript-eslint/visitor-keys": "8.45.1-alpha.7",
59
59
  "debug": "^4.3.4",
60
60
  "fast-glob": "^3.3.2",
61
61
  "is-glob": "^4.0.3",