@eslint-react/ast 4.2.0-beta.0 → 4.2.0-beta.2

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -825,6 +825,9 @@ const isNodeEqual = dual(2, (a, b) => {
825
825
  case a.type === AST_NODE_TYPES.Identifier && b.type === AST_NODE_TYPES.Identifier: return a.name === b.name;
826
826
  case a.type === AST_NODE_TYPES.PrivateIdentifier && b.type === AST_NODE_TYPES.PrivateIdentifier: return a.name === b.name;
827
827
  case a.type === AST_NODE_TYPES.MemberExpression && b.type === AST_NODE_TYPES.MemberExpression: return isNodeEqual(a.property, b.property) && isNodeEqual(a.object, b.object);
828
+ case a.type === AST_NODE_TYPES.JSXIdentifier && b.type === AST_NODE_TYPES.JSXIdentifier: return a.name === b.name;
829
+ case a.type === AST_NODE_TYPES.JSXNamespacedName && b.type === AST_NODE_TYPES.JSXNamespacedName: return isNodeEqual(a.namespace, b.namespace) && isNodeEqual(a.name, b.name);
830
+ case a.type === AST_NODE_TYPES.JSXMemberExpression && b.type === AST_NODE_TYPES.JSXMemberExpression: return isNodeEqual(a.object, b.object) && isNodeEqual(a.property, b.property);
828
831
  case a.type === AST_NODE_TYPES.JSXAttribute && b.type === AST_NODE_TYPES.JSXAttribute:
829
832
  if (!isNodeEqual(a.name, b.name)) return false;
830
833
  if (a.value == null || b.value == null) return a.value === b.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "4.2.0-beta.0",
3
+ "version": "4.2.0-beta.2",
4
4
  "description": "ESLint React's TSESTree AST utility module.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -30,9 +30,9 @@
30
30
  "./package.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@typescript-eslint/types": "^8.57.2",
34
- "@typescript-eslint/typescript-estree": "^8.57.2",
35
- "@typescript-eslint/utils": "^8.57.2",
33
+ "@typescript-eslint/types": "^8.58.0",
34
+ "@typescript-eslint/typescript-estree": "^8.58.0",
35
+ "@typescript-eslint/utils": "^8.58.0",
36
36
  "string-ts": "^2.3.1"
37
37
  },
38
38
  "devDependencies": {