@typescript-eslint/eslint-plugin 8.36.1-alpha.2 → 8.36.1-alpha.4

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":"unified-signatures.d.ts","sourceRoot":"","sources":["../../src/rules/unified-signatures.ts"],"names":[],"mappings":"AAuDA,MAAM,MAAM,UAAU,GAClB,uBAAuB,GACvB,yBAAyB,GACzB,2BAA2B,CAAC;AAEhC,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,gCAAgC,CAAC,EAAE,OAAO,CAAC;QAC3C,iCAAiC,CAAC,EAAE,OAAO,CAAC;KAC7C;CACF,CAAC;;AAEF,wBA8kBG"}
1
+ {"version":3,"file":"unified-signatures.d.ts","sourceRoot":"","sources":["../../src/rules/unified-signatures.ts"],"names":[],"mappings":"AAuDA,MAAM,MAAM,UAAU,GAClB,uBAAuB,GACvB,yBAAyB,GACzB,2BAA2B,CAAC;AAEhC,MAAM,MAAM,OAAO,GAAG;IACpB;QACE,gCAAgC,CAAC,EAAE,OAAO,CAAC;QAC3C,iCAAiC,CAAC,EAAE,OAAO,CAAC;KAC7C;CACF,CAAC;;AAEF,wBA6kBG"}
@@ -132,8 +132,8 @@ exports.default = (0, util_1.createRule)({
132
132
  }
133
133
  }
134
134
  if (ignoreOverloadsWithDifferentJSDoc) {
135
- const aComment = getBlockCommentForNode(getExportingNode(a) ?? a);
136
- const bComment = getBlockCommentForNode(getExportingNode(b) ?? b);
135
+ const aComment = getBlockCommentForNode(getCommentTargetNode(a));
136
+ const bComment = getBlockCommentForNode(getCommentTargetNode(b));
137
137
  if (aComment?.value !== bComment?.value) {
138
138
  return false;
139
139
  }
@@ -411,6 +411,12 @@ exports.default = (0, util_1.createRule)({
411
411
  };
412
412
  },
413
413
  });
414
+ function getCommentTargetNode(node) {
415
+ if (node.type === utils_1.AST_NODE_TYPES.TSEmptyBodyFunctionExpression) {
416
+ return node.parent;
417
+ }
418
+ return getExportingNode(node) ?? node;
419
+ }
414
420
  function getExportingNode(node) {
415
421
  return node.parent.type === utils_1.AST_NODE_TYPES.ExportNamedDeclaration ||
416
422
  node.parent.type === utils_1.AST_NODE_TYPES.ExportDefaultDeclaration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typescript-eslint/eslint-plugin",
3
- "version": "8.36.1-alpha.2",
3
+ "version": "8.36.1-alpha.4",
4
4
  "description": "TypeScript plugin for ESLint",
5
5
  "files": [
6
6
  "dist",
@@ -59,10 +59,10 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@eslint-community/regexpp": "^4.10.0",
62
- "@typescript-eslint/scope-manager": "8.36.1-alpha.2",
63
- "@typescript-eslint/type-utils": "8.36.1-alpha.2",
64
- "@typescript-eslint/utils": "8.36.1-alpha.2",
65
- "@typescript-eslint/visitor-keys": "8.36.1-alpha.2",
62
+ "@typescript-eslint/scope-manager": "8.36.1-alpha.4",
63
+ "@typescript-eslint/type-utils": "8.36.1-alpha.4",
64
+ "@typescript-eslint/utils": "8.36.1-alpha.4",
65
+ "@typescript-eslint/visitor-keys": "8.36.1-alpha.4",
66
66
  "graphemer": "^1.4.0",
67
67
  "ignore": "^7.0.0",
68
68
  "natural-compare": "^1.4.0",
@@ -71,8 +71,8 @@
71
71
  "devDependencies": {
72
72
  "@types/mdast": "^4.0.3",
73
73
  "@types/natural-compare": "*",
74
- "@typescript-eslint/rule-schema-to-typescript-types": "8.36.1-alpha.2",
75
- "@typescript-eslint/rule-tester": "8.36.1-alpha.2",
74
+ "@typescript-eslint/rule-schema-to-typescript-types": "8.36.1-alpha.4",
75
+ "@typescript-eslint/rule-tester": "8.36.1-alpha.4",
76
76
  "@vitest/coverage-v8": "^3.1.3",
77
77
  "ajv": "^6.12.6",
78
78
  "cross-fetch": "*",
@@ -92,7 +92,7 @@
92
92
  "vitest": "^3.1.3"
93
93
  },
94
94
  "peerDependencies": {
95
- "@typescript-eslint/parser": "^8.36.1-alpha.2",
95
+ "@typescript-eslint/parser": "^8.36.1-alpha.4",
96
96
  "eslint": "^8.57.0 || ^9.0.0",
97
97
  "typescript": ">=4.8.4 <5.9.0"
98
98
  },