@typescript-eslint/typescript-estree 8.52.1-alpha.4 → 8.52.1-alpha.5

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.
@@ -366,6 +366,12 @@ function checkSyntaxError(tsNode, parent, allowPattern) {
366
366
  }
367
367
  break;
368
368
  }
369
+ case SyntaxKind.ImportEqualsDeclaration:
370
+ if (node.isTypeOnly &&
371
+ node.moduleReference.kind !== SyntaxKind.ExternalModuleReference) {
372
+ throw (0, node_utils_1.createError)(node, "An import alias cannot use 'import type'");
373
+ }
374
+ break;
369
375
  case SyntaxKind.ModuleDeclaration: {
370
376
  if (node.flags & ts.NodeFlags.GlobalAugmentation) {
371
377
  const { body } = node;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/typescript-estree",
3
- "version": "8.52.1-alpha.4",
3
+ "version": "8.52.1-alpha.5",
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.52.1-alpha.4",
56
- "@typescript-eslint/tsconfig-utils": "8.52.1-alpha.4",
57
- "@typescript-eslint/types": "8.52.1-alpha.4",
58
- "@typescript-eslint/visitor-keys": "8.52.1-alpha.4",
55
+ "@typescript-eslint/project-service": "8.52.1-alpha.5",
56
+ "@typescript-eslint/tsconfig-utils": "8.52.1-alpha.5",
57
+ "@typescript-eslint/types": "8.52.1-alpha.5",
58
+ "@typescript-eslint/visitor-keys": "8.52.1-alpha.5",
59
59
  "debug": "^4.4.3",
60
60
  "minimatch": "^9.0.5",
61
61
  "semver": "^7.7.3",