@eslint-react/ast
Advanced tools
+13
-0
@@ -280,2 +280,15 @@ import { t as __exportAll } from "./rolldown-runtime-w6R9maHv.js"; | ||
| case a.type === AST_NODE_TYPES.MemberExpression && b.type === AST_NODE_TYPES.MemberExpression: return isEqual(a.property, b.property) && isEqual(a.object, b.object); | ||
| case a.type === AST_NODE_TYPES.CallExpression && b.type === AST_NODE_TYPES.CallExpression: { | ||
| if (a.optional !== b.optional) return false; | ||
| if (a.arguments.length !== b.arguments.length) return false; | ||
| if (!isEqual(a.callee, b.callee)) return false; | ||
| let i = a.arguments.length; | ||
| while (i--) { | ||
| const argA = a.arguments[i]; | ||
| const argB = b.arguments[i]; | ||
| if (argA == null || argB == null) return false; | ||
| if (!isEqual(argA, argB)) return false; | ||
| } | ||
| return true; | ||
| } | ||
| case a.type === AST_NODE_TYPES.JSXIdentifier && b.type === AST_NODE_TYPES.JSXIdentifier: return a.name === b.name; | ||
@@ -282,0 +295,0 @@ case a.type === AST_NODE_TYPES.JSXNamespacedName && b.type === AST_NODE_TYPES.JSXNamespacedName: return isEqual(a.namespace, b.namespace) && isEqual(a.name, b.name); |
+1
-1
| { | ||
| "name": "@eslint-react/ast", | ||
| "version": "5.9.4", | ||
| "version": "5.9.5", | ||
| "description": "ESLint React's TSESTree AST utility module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Rel1cx/eslint-react", |
21757
2.32%399
3.37%