@typescript-eslint/typescript-estree 8.50.2-alpha.9 → 8.51.1-alpha.0

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.
Files changed (2) hide show
  1. package/dist/convert.js +2 -4
  2. package/package.json +6 -6
package/dist/convert.js CHANGED
@@ -664,8 +664,7 @@ class Converter {
664
664
  this.#checkForStatementDeclaration(node.initializer, node.kind);
665
665
  return this.createNode(node, {
666
666
  type: ts_estree_1.AST_NODE_TYPES.ForOfStatement,
667
- await: Boolean(node.awaitModifier &&
668
- node.awaitModifier.kind === SyntaxKind.AwaitKeyword),
667
+ await: node.awaitModifier?.kind === SyntaxKind.AwaitKeyword,
669
668
  body: this.convertChild(node.statement),
670
669
  left: this.convertPattern(node.initializer),
671
670
  right: this.convertChild(node.expression),
@@ -1184,8 +1183,7 @@ class Converter {
1184
1183
  else {
1185
1184
  result = this.createNode(node, {
1186
1185
  type: ts_estree_1.AST_NODE_TYPES.Property,
1187
- computed: Boolean(node.propertyName &&
1188
- node.propertyName.kind === SyntaxKind.ComputedPropertyName),
1186
+ computed: node.propertyName?.kind === SyntaxKind.ComputedPropertyName,
1189
1187
  key: this.convertChild(node.propertyName ?? node.name),
1190
1188
  kind: 'init',
1191
1189
  method: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/typescript-estree",
3
- "version": "8.50.2-alpha.9",
3
+ "version": "8.51.1-alpha.0",
4
4
  "description": "A parser that converts TypeScript source code into an ESTree compatible form",
5
5
  "files": [
6
6
  "dist",
@@ -52,15 +52,15 @@
52
52
  "typecheck": "yarn run -BT nx typecheck"
53
53
  },
54
54
  "dependencies": {
55
- "@typescript-eslint/project-service": "8.50.2-alpha.9",
56
- "@typescript-eslint/tsconfig-utils": "8.50.2-alpha.9",
57
- "@typescript-eslint/types": "8.50.2-alpha.9",
58
- "@typescript-eslint/visitor-keys": "8.50.2-alpha.9",
55
+ "@typescript-eslint/project-service": "8.51.1-alpha.0",
56
+ "@typescript-eslint/tsconfig-utils": "8.51.1-alpha.0",
57
+ "@typescript-eslint/types": "8.51.1-alpha.0",
58
+ "@typescript-eslint/visitor-keys": "8.51.1-alpha.0",
59
59
  "debug": "^4.3.4",
60
60
  "minimatch": "^9.0.4",
61
61
  "semver": "^7.6.0",
62
62
  "tinyglobby": "^0.2.15",
63
- "ts-api-utils": "^2.1.0"
63
+ "ts-api-utils": "^2.2.0"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@vitest/coverage-v8": "^3.1.3",