eslint-plugin-react-hooks-extra 1.43.0 → 1.43.2-beta.0

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
@@ -52,7 +52,7 @@ var rules = {
52
52
 
53
53
  // package.json
54
54
  var name2 = "eslint-plugin-react-hooks-extra";
55
- var version = "1.43.0";
55
+ var version = "1.43.2-beta.0";
56
56
  var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("hooks-extra"));
57
57
  function isFromHookCall(context, name3, settings, predicate = eff.constTrue) {
58
58
  const hookAlias = settings.additionalHooks[name3] ?? [];
@@ -635,7 +635,7 @@ function create6(context) {
635
635
  }
636
636
  for (const expr of AST__namespace.getNestedCallExpressions(useStateInput)) {
637
637
  if (!("name" in expr.callee)) continue;
638
- if (ER7__namespace.isReactHookNameLoose(expr.callee.name)) continue;
638
+ if (ER7__namespace.isReactHookName(expr.callee.name)) continue;
639
639
  if (ALLOW_LIST.includes(expr.callee.name)) continue;
640
640
  if (AST__namespace.findParentNode(expr, (n) => ER7__namespace.isUseCall(context, n)) != null) continue;
641
641
  context.report({
package/dist/index.mjs CHANGED
@@ -28,7 +28,7 @@ var rules = {
28
28
 
29
29
  // package.json
30
30
  var name2 = "eslint-plugin-react-hooks-extra";
31
- var version = "1.43.0";
31
+ var version = "1.43.2-beta.0";
32
32
  var createRule = ESLintUtils.RuleCreator(getDocsUrl("hooks-extra"));
33
33
  function isFromHookCall(context, name3, settings, predicate = constTrue) {
34
34
  const hookAlias = settings.additionalHooks[name3] ?? [];
@@ -611,7 +611,7 @@ function create6(context) {
611
611
  }
612
612
  for (const expr of AST.getNestedCallExpressions(useStateInput)) {
613
613
  if (!("name" in expr.callee)) continue;
614
- if (ER7.isReactHookNameLoose(expr.callee.name)) continue;
614
+ if (ER7.isReactHookName(expr.callee.name)) continue;
615
615
  if (ALLOW_LIST.includes(expr.callee.name)) continue;
616
616
  if (AST.findParentNode(expr, (n) => ER7.isUseCall(context, n)) != null) continue;
617
617
  context.report({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks-extra",
3
- "version": "1.43.0",
3
+ "version": "1.43.2-beta.0",
4
4
  "description": "ESLint React's ESLint plugin for React Hooks related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -50,13 +50,13 @@
50
50
  "@typescript-eslint/utils": "^8.29.1",
51
51
  "string-ts": "^2.2.1",
52
52
  "ts-pattern": "^5.7.0",
53
- "@eslint-react/ast": "1.43.0",
54
- "@eslint-react/core": "1.43.0",
55
- "@eslint-react/jsx": "1.43.0",
56
- "@eslint-react/kit": "1.43.0",
57
- "@eslint-react/var": "1.43.0",
58
- "@eslint-react/eff": "1.43.0",
59
- "@eslint-react/shared": "1.43.0"
53
+ "@eslint-react/eff": "1.43.2-beta.0",
54
+ "@eslint-react/core": "1.43.2-beta.0",
55
+ "@eslint-react/jsx": "1.43.2-beta.0",
56
+ "@eslint-react/kit": "1.43.2-beta.0",
57
+ "@eslint-react/shared": "1.43.2-beta.0",
58
+ "@eslint-react/var": "1.43.2-beta.0",
59
+ "@eslint-react/ast": "1.43.2-beta.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/react": "^19.1.0",