@typescript-eslint/typescript-estree 8.46.4-alpha.4 → 8.46.4-alpha.6

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.
@@ -167,6 +167,14 @@ function createParseSettings(code, tsestreeOptions = {}) {
167
167
  ExpiringCache_1.DEFAULT_TSCONFIG_CACHE_DURATION_SECONDS))),
168
168
  tsconfigRootDir,
169
169
  };
170
+ // TODO: Eventually, parse settings will be validated more thoroughly.
171
+ // https://github.com/typescript-eslint/typescript-eslint/issues/6403
172
+ if (parseSettings.projectService &&
173
+ tsestreeOptions.project &&
174
+ process.env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR !==
175
+ 'true') {
176
+ throw new Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');
177
+ }
170
178
  // debug doesn't support multiple `enable` calls, so have to do it all at once
171
179
  if (parseSettings.debugLevel.size > 0) {
172
180
  const namespaces = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/typescript-estree",
3
- "version": "8.46.4-alpha.4",
3
+ "version": "8.46.4-alpha.6",
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.46.4-alpha.4",
56
- "@typescript-eslint/tsconfig-utils": "8.46.4-alpha.4",
57
- "@typescript-eslint/types": "8.46.4-alpha.4",
58
- "@typescript-eslint/visitor-keys": "8.46.4-alpha.4",
55
+ "@typescript-eslint/project-service": "8.46.4-alpha.6",
56
+ "@typescript-eslint/tsconfig-utils": "8.46.4-alpha.6",
57
+ "@typescript-eslint/types": "8.46.4-alpha.6",
58
+ "@typescript-eslint/visitor-keys": "8.46.4-alpha.6",
59
59
  "debug": "^4.3.4",
60
60
  "fast-glob": "^3.3.2",
61
61
  "is-glob": "^4.0.3",