@typescript-eslint/typescript-estree 8.71.3-alpha.1 → 8.71.3-alpha.11

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.
@@ -199,6 +199,12 @@ function checkModifiers(node) {
199
199
  node.kind !== SyntaxKind.SetAccessor) {
200
200
  throw (0, node_utils_1.createError)(modifier, `'${ts.tokenToString(modifier.kind)}' modifier can only appear on a class, method, or property declaration.`);
201
201
  }
202
+ if (modifier.kind === SyntaxKind.ExportKeyword &&
203
+ modifiers
204
+ .slice(0, modifiers.indexOf(modifier))
205
+ .some(m => m.kind === SyntaxKind.AbstractKeyword)) {
206
+ throw (0, node_utils_1.createError)(modifier, "'export' modifier must precede 'abstract' modifier.");
207
+ }
202
208
  if ((modifier.kind === SyntaxKind.StaticKeyword ||
203
209
  modifier.kind === SyntaxKind.PublicKeyword ||
204
210
  modifier.kind === SyntaxKind.ProtectedKeyword ||
package/dist/convert.js CHANGED
@@ -1366,6 +1366,7 @@ class Converter {
1366
1366
  operator,
1367
1367
  // Guaranteed to be true in a valid AST (and asserted above) but
1368
1368
  // technically could be false at runtime with allowInvalidAST: true.
1369
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- `prefix` is a required property
1369
1370
  prefix: isPrefixUnaryExpression,
1370
1371
  });
1371
1372
  }
@@ -1374,6 +1375,7 @@ class Converter {
1374
1375
  type: ts_estree_1.AST_NODE_TYPES.UnaryExpression,
1375
1376
  argument: this.convertChild(node.expression),
1376
1377
  operator: 'delete',
1378
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- `prefix` is a required property
1377
1379
  prefix: true,
1378
1380
  });
1379
1381
  case SyntaxKind.VoidExpression:
@@ -1381,6 +1383,7 @@ class Converter {
1381
1383
  type: ts_estree_1.AST_NODE_TYPES.UnaryExpression,
1382
1384
  argument: this.convertChild(node.expression),
1383
1385
  operator: 'void',
1386
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- `prefix` is a required property
1384
1387
  prefix: true,
1385
1388
  });
1386
1389
  case SyntaxKind.TypeOfExpression:
@@ -1388,6 +1391,7 @@ class Converter {
1388
1391
  type: ts_estree_1.AST_NODE_TYPES.UnaryExpression,
1389
1392
  argument: this.convertChild(node.expression),
1390
1393
  operator: 'typeof',
1394
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- `prefix` is a required property
1391
1395
  prefix: true,
1392
1396
  });
1393
1397
  case SyntaxKind.TypeOperator:
@@ -2049,6 +2053,7 @@ class Converter {
2049
2053
  return {
2050
2054
  body: this.convertChild(node.body),
2051
2055
  declare: false,
2056
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- `global` is a required property
2052
2057
  global: false,
2053
2058
  id: this.convertChild(node.name),
2054
2059
  kind: 'global',
@@ -2060,6 +2065,7 @@ class Converter {
2060
2065
  kind: 'module',
2061
2066
  ...(body != null ? { body } : {}),
2062
2067
  declare: false,
2068
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- `global` is a required property
2063
2069
  global: false,
2064
2070
  id: this.convertChild(node.name),
2065
2071
  };
@@ -2099,6 +2105,7 @@ class Converter {
2099
2105
  return {
2100
2106
  body: this.convertChild(node.body),
2101
2107
  declare: false,
2108
+ // eslint-disable-next-line @typescript-eslint/no-deprecated -- `global` is a required property
2102
2109
  global: false,
2103
2110
  id: name,
2104
2111
  kind: node.flags & ts.NodeFlags.Namespace ? 'namespace' : 'module',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/typescript-estree",
3
- "version": "8.71.3-alpha.1",
3
+ "version": "8.71.3-alpha.11",
4
4
  "description": "A parser that converts TypeScript source code into an ESTree compatible form",
5
5
  "files": [
6
6
  "dist",
@@ -43,10 +43,10 @@
43
43
  "syntax"
44
44
  ],
45
45
  "dependencies": {
46
- "@typescript-eslint/project-service": "8.71.3-alpha.1",
47
- "@typescript-eslint/tsconfig-utils": "8.71.3-alpha.1",
48
- "@typescript-eslint/types": "8.71.3-alpha.1",
49
- "@typescript-eslint/visitor-keys": "8.71.3-alpha.1",
46
+ "@typescript-eslint/project-service": "8.71.3-alpha.11",
47
+ "@typescript-eslint/tsconfig-utils": "8.71.3-alpha.11",
48
+ "@typescript-eslint/types": "8.71.3-alpha.11",
49
+ "@typescript-eslint/visitor-keys": "8.71.3-alpha.11",
50
50
  "debug": "^4.4.3",
51
51
  "minimatch": "^10.2.2",
52
52
  "semver": "^7.7.3",