@typescript-eslint/eslint-plugin 8.33.1 → 8.33.2-alpha.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"prefer-optional-chain.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-optional-chain.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,6BAA6B,EAC7B,0BAA0B,EAC3B,MAAM,0DAA0D,CAAC;;AAelE,wBAiMG"}
1
+ {"version":3,"file":"prefer-optional-chain.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-optional-chain.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,6BAA6B,EAC7B,0BAA0B,EAC3B,MAAM,0DAA0D,CAAC;;AAelE,wBAkMG"}
@@ -77,7 +77,6 @@ exports.default = (0, util_1.createRule)({
77
77
  const parserServices = (0, util_1.getParserServices)(context);
78
78
  const seenLogicals = new Set();
79
79
  return {
80
- // specific handling for `(foo ?? {}).bar` / `(foo || {}).bar`
81
80
  'LogicalExpression[operator!="??"]'(node) {
82
81
  if (seenLogicals.has(node)) {
83
82
  return;
@@ -101,6 +100,7 @@ exports.default = (0, util_1.createRule)({
101
100
  (0, analyzeChain_1.analyzeChain)(context, parserServices, options, node, node.operator, currentChain);
102
101
  }
103
102
  },
103
+ // specific handling for `(foo ?? {}).bar` / `(foo || {}).bar`
104
104
  'LogicalExpression[operator="||"], LogicalExpression[operator="??"]'(node) {
105
105
  const leftNode = node.left;
106
106
  const rightNode = node.right;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/eslint-plugin",
3
- "version": "8.33.1",
3
+ "version": "8.33.2-alpha.1",
4
4
  "description": "TypeScript plugin for ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -60,10 +60,10 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@eslint-community/regexpp": "^4.10.0",
63
- "@typescript-eslint/scope-manager": "8.33.1",
64
- "@typescript-eslint/type-utils": "8.33.1",
65
- "@typescript-eslint/utils": "8.33.1",
66
- "@typescript-eslint/visitor-keys": "8.33.1",
63
+ "@typescript-eslint/scope-manager": "8.33.2-alpha.1",
64
+ "@typescript-eslint/type-utils": "8.33.2-alpha.1",
65
+ "@typescript-eslint/utils": "8.33.2-alpha.1",
66
+ "@typescript-eslint/visitor-keys": "8.33.2-alpha.1",
67
67
  "graphemer": "^1.4.0",
68
68
  "ignore": "^7.0.0",
69
69
  "natural-compare": "^1.4.0",
@@ -72,8 +72,8 @@
72
72
  "devDependencies": {
73
73
  "@types/mdast": "^4.0.3",
74
74
  "@types/natural-compare": "*",
75
- "@typescript-eslint/rule-schema-to-typescript-types": "8.33.1",
76
- "@typescript-eslint/rule-tester": "8.33.1",
75
+ "@typescript-eslint/rule-schema-to-typescript-types": "8.33.2-alpha.1",
76
+ "@typescript-eslint/rule-tester": "8.33.2-alpha.1",
77
77
  "@vitest/coverage-v8": "^3.1.3",
78
78
  "ajv": "^6.12.6",
79
79
  "cross-fetch": "*",
@@ -93,7 +93,7 @@
93
93
  "vitest": "^3.1.3"
94
94
  },
95
95
  "peerDependencies": {
96
- "@typescript-eslint/parser": "^8.33.1",
96
+ "@typescript-eslint/parser": "^8.33.2-alpha.1",
97
97
  "eslint": "^8.57.0 || ^9.0.0",
98
98
  "typescript": ">=4.8.4 <5.9.0"
99
99
  },