@eslint-react/core 1.42.2-next.1 → 1.42.2-next.3

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.
package/dist/index.js CHANGED
@@ -534,7 +534,7 @@ function getInstanceId(node, prev) {
534
534
  }
535
535
  }
536
536
  function getRequireExpressionArguments(node) {
537
- return tsPattern.match(node).with({ type: types.AST_NODE_TYPES.CallExpression, arguments: tsPattern.P.select(), callee: { type: types.AST_NODE_TYPES.Identifier, name: "require" } }, eff.identity).with({ type: types.AST_NODE_TYPES.MemberExpression, object: tsPattern.P.select() }, getRequireExpressionArguments).otherwise(() => eff._);
537
+ return tsPattern.match(node).with({ type: types.AST_NODE_TYPES.CallExpression, arguments: tsPattern.P.select(), callee: { type: types.AST_NODE_TYPES.Identifier, name: "require" } }, eff.identity).with({ type: types.AST_NODE_TYPES.MemberExpression, object: tsPattern.P.select() }, getRequireExpressionArguments).otherwise(() => null);
538
538
  }
539
539
  function isInitializedFromReact(name, importSource, initialScope) {
540
540
  if (name.toLowerCase() === "react") return true;
package/dist/index.mjs CHANGED
@@ -507,7 +507,7 @@ function getInstanceId(node, prev) {
507
507
  }
508
508
  }
509
509
  function getRequireExpressionArguments(node) {
510
- return match(node).with({ type: AST_NODE_TYPES.CallExpression, arguments: P.select(), callee: { type: AST_NODE_TYPES.Identifier, name: "require" } }, identity).with({ type: AST_NODE_TYPES.MemberExpression, object: P.select() }, getRequireExpressionArguments).otherwise(() => _);
510
+ return match(node).with({ type: AST_NODE_TYPES.CallExpression, arguments: P.select(), callee: { type: AST_NODE_TYPES.Identifier, name: "require" } }, identity).with({ type: AST_NODE_TYPES.MemberExpression, object: P.select() }, getRequireExpressionArguments).otherwise(() => null);
511
511
  }
512
512
  function isInitializedFromReact(name, importSource, initialScope) {
513
513
  if (name.toLowerCase() === "react") return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "1.42.2-next.1",
3
+ "version": "1.42.2-next.3",
4
4
  "description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -41,12 +41,12 @@
41
41
  "@typescript-eslint/utils": "^8.29.1",
42
42
  "birecord": "^0.1.1",
43
43
  "ts-pattern": "^5.7.0",
44
- "@eslint-react/jsx": "1.42.2-next.1",
45
- "@eslint-react/ast": "1.42.2-next.1",
46
- "@eslint-react/kit": "1.42.2-next.1",
47
- "@eslint-react/shared": "1.42.2-next.1",
48
- "@eslint-react/eff": "1.42.2-next.1",
49
- "@eslint-react/var": "1.42.2-next.1"
44
+ "@eslint-react/ast": "1.42.2-next.3",
45
+ "@eslint-react/eff": "1.42.2-next.3",
46
+ "@eslint-react/jsx": "1.42.2-next.3",
47
+ "@eslint-react/kit": "1.42.2-next.3",
48
+ "@eslint-react/shared": "1.42.2-next.3",
49
+ "@eslint-react/var": "1.42.2-next.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "tsup": "^8.4.0",