@typescript-eslint/eslint-plugin 8.72.0 → 8.72.1-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.
@@ -259,7 +259,7 @@ exports.default = (0, util_1.createRule)({
259
259
  .unionConstituents(type)
260
260
  .some(part => (0, util_1.isTypeAnyType)(part) ||
261
261
  (0, util_1.isTypeUnknownType)(part) ||
262
- (0, util_1.isTypeFlagSet)(part, ts.TypeFlags.TypeVariable));
262
+ (0, util_1.isTypeFlagSet)(part, ts.TypeFlags.TypeVariable | ts.TypeFlags.Conditional));
263
263
  }
264
264
  function isNullableMemberExpression(node) {
265
265
  const objectType = services.getTypeAtLocation(node.object);
@@ -371,7 +371,8 @@ exports.default = (0, util_1.createRule)({
371
371
  if ((0, util_1.isTypeFlagSet)(type, ts.TypeFlags.Any |
372
372
  ts.TypeFlags.Unknown |
373
373
  ts.TypeFlags.TypeParameter |
374
- ts.TypeFlags.TypeVariable)) {
374
+ ts.TypeFlags.TypeVariable |
375
+ ts.TypeFlags.Conditional)) {
375
376
  return;
376
377
  }
377
378
  let messageId = null;
@@ -440,7 +441,8 @@ exports.default = (0, util_1.createRule)({
440
441
  ts.TypeFlags.Any |
441
442
  ts.TypeFlags.Unknown |
442
443
  ts.TypeFlags.TypeParameter |
443
- ts.TypeFlags.TypeVariable;
444
+ ts.TypeFlags.TypeVariable |
445
+ ts.TypeFlags.Conditional;
444
446
  // Allow loose comparison to nullish values.
445
447
  if (operator === '==' || operator === '!=') {
446
448
  flag |= NULL | UNDEFINED | VOID;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/eslint-plugin",
3
- "version": "8.72.0",
3
+ "version": "8.72.1-alpha.1",
4
4
  "description": "TypeScript plugin for ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -47,10 +47,10 @@
47
47
  ],
48
48
  "dependencies": {
49
49
  "@eslint-community/regexpp": "^4.12.2",
50
- "@typescript-eslint/scope-manager": "8.72.0",
51
- "@typescript-eslint/type-utils": "8.72.0",
52
- "@typescript-eslint/utils": "8.72.0",
53
- "@typescript-eslint/visitor-keys": "8.72.0",
50
+ "@typescript-eslint/scope-manager": "8.72.1-alpha.1",
51
+ "@typescript-eslint/type-utils": "8.72.1-alpha.1",
52
+ "@typescript-eslint/utils": "8.72.1-alpha.1",
53
+ "@typescript-eslint/visitor-keys": "8.72.1-alpha.1",
54
54
  "ignore": "^7.0.5",
55
55
  "natural-compare": "^1.4.0",
56
56
  "ts-api-utils": "^2.5.0"
@@ -60,8 +60,8 @@
60
60
  "@types/mdast": "^4.0.4",
61
61
  "@types/natural-compare": "^1.4.3",
62
62
  "@types/react": "^18.3.21",
63
- "@typescript-eslint/rule-schema-to-typescript-types": "8.72.0",
64
- "@typescript-eslint/rule-tester": "8.72.0",
63
+ "@typescript-eslint/rule-schema-to-typescript-types": "8.72.1-alpha.1",
64
+ "@typescript-eslint/rule-tester": "8.72.1-alpha.1",
65
65
  "@typescript/native": "npm:typescript@^7.0.2",
66
66
  "@vitest/coverage-v8": "^5.0.3",
67
67
  "ajv": "^6.12.6",
@@ -81,7 +81,7 @@
81
81
  "vitest": "^5.0.3"
82
82
  },
83
83
  "peerDependencies": {
84
- "@typescript-eslint/parser": "^8.72.0",
84
+ "@typescript-eslint/parser": "^8.72.1-alpha.1",
85
85
  "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
86
86
  "typescript": ">=4.8.4 <6.1.0"
87
87
  },