@typescript-eslint/scope-manager 8.50.2-alpha.12 → 8.50.2-alpha.13

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.
@@ -312,8 +312,7 @@ class Referencer extends Visitor_1.Visitor {
312
312
  // Create ForStatement declaration.
313
313
  // NOTE: In ES6, ForStatement dynamically generates per iteration environment. However, this is
314
314
  // a static analyzer, we only generate one scope for ForStatement.
315
- if (node.init &&
316
- node.init.type === types_1.AST_NODE_TYPES.VariableDeclaration &&
315
+ if (node.init?.type === types_1.AST_NODE_TYPES.VariableDeclaration &&
317
316
  node.init.kind !== 'var') {
318
317
  this.scopeManager.nestForScope(node);
319
318
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/scope-manager",
3
- "version": "8.50.2-alpha.12",
3
+ "version": "8.50.2-alpha.13",
4
4
  "description": "TypeScript scope analyser for ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -47,11 +47,11 @@
47
47
  "typecheck": "yarn run -BT nx typecheck"
48
48
  },
49
49
  "dependencies": {
50
- "@typescript-eslint/types": "8.50.2-alpha.12",
51
- "@typescript-eslint/visitor-keys": "8.50.2-alpha.12"
50
+ "@typescript-eslint/types": "8.50.2-alpha.13",
51
+ "@typescript-eslint/visitor-keys": "8.50.2-alpha.13"
52
52
  },
53
53
  "devDependencies": {
54
- "@typescript-eslint/typescript-estree": "8.50.2-alpha.12",
54
+ "@typescript-eslint/typescript-estree": "8.50.2-alpha.13",
55
55
  "@vitest/coverage-v8": "^3.1.3",
56
56
  "@vitest/pretty-format": "^3.1.3",
57
57
  "eslint": "*",