eslint-plugin-react-hooks-extra 1.13.1-next.2 → 1.13.1

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
@@ -32,7 +32,7 @@ var VAR3__namespace = /*#__PURE__*/_interopNamespace(VAR3);
32
32
 
33
33
  // package.json
34
34
  var name = "eslint-plugin-react-hooks-extra";
35
- var version = "1.13.1-next.2";
35
+ var version = "1.13.1";
36
36
  var createRule = shared.createRuleForPlugin("hooks-extra");
37
37
  function isFromHookCall(name2, context, settings, predicate = tools.F.constTrue) {
38
38
  const hookAlias = settings.additionalHooks?.[name2] ?? [];
@@ -401,7 +401,7 @@ var no_unnecessary_use_callback_default = createRule({
401
401
  );
402
402
  }).otherwise(tools.O.none),
403
403
  tools.O.map((n) => context.sourceCode.getScope(n)),
404
- tools.O.map((s) => [...s.childScopes, s].flatMap((x) => x.references)),
404
+ tools.O.map((s) => VAR3__namespace.getChidScopes(s).flatMap((x) => x.references)),
405
405
  tools.O.exists((refs) => refs.some((x) => x.resolved?.scope.block === component))
406
406
  );
407
407
  if (isReferencedToComponentScope) return;
@@ -480,7 +480,7 @@ var no_unnecessary_use_memo_default = createRule({
480
480
  );
481
481
  }).otherwise(tools.O.none),
482
482
  tools.O.map((n) => context.sourceCode.getScope(n)),
483
- tools.O.map((s) => [...s.childScopes, s].flatMap((x) => x.references)),
483
+ tools.O.map((s) => VAR3__namespace.getChidScopes(s).flatMap((x) => x.references)),
484
484
  tools.O.exists((refs) => refs.some((x) => x.resolved?.scope.block === component))
485
485
  );
486
486
  if (isReferencedToComponentScope) return;
package/dist/index.mjs CHANGED
@@ -9,7 +9,7 @@ import { getStaticValue } from '@typescript-eslint/utils/ast-utils';
9
9
 
10
10
  // package.json
11
11
  var name = "eslint-plugin-react-hooks-extra";
12
- var version = "1.13.1-next.2";
12
+ var version = "1.13.1";
13
13
  var createRule = createRuleForPlugin("hooks-extra");
14
14
  function isFromHookCall(name2, context, settings, predicate = F.constTrue) {
15
15
  const hookAlias = settings.additionalHooks?.[name2] ?? [];
@@ -378,7 +378,7 @@ var no_unnecessary_use_callback_default = createRule({
378
378
  );
379
379
  }).otherwise(O.none),
380
380
  O.map((n) => context.sourceCode.getScope(n)),
381
- O.map((s) => [...s.childScopes, s].flatMap((x) => x.references)),
381
+ O.map((s) => VAR3.getChidScopes(s).flatMap((x) => x.references)),
382
382
  O.exists((refs) => refs.some((x) => x.resolved?.scope.block === component))
383
383
  );
384
384
  if (isReferencedToComponentScope) return;
@@ -457,7 +457,7 @@ var no_unnecessary_use_memo_default = createRule({
457
457
  );
458
458
  }).otherwise(O.none),
459
459
  O.map((n) => context.sourceCode.getScope(n)),
460
- O.map((s) => [...s.childScopes, s].flatMap((x) => x.references)),
460
+ O.map((s) => VAR3.getChidScopes(s).flatMap((x) => x.references)),
461
461
  O.exists((refs) => refs.some((x) => x.resolved?.scope.block === component))
462
462
  );
463
463
  if (isReferencedToComponentScope) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks-extra",
3
- "version": "1.13.1-next.2",
3
+ "version": "1.13.1",
4
4
  "description": "ESLint React's ESLint plugin for React Hooks related rules.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -46,13 +46,13 @@
46
46
  "@typescript-eslint/types": "^8.4.0",
47
47
  "@typescript-eslint/utils": "^8.4.0",
48
48
  "ts-pattern": "^5.3.1",
49
- "@eslint-react/ast": "1.13.1-next.2",
50
- "@eslint-react/jsx": "1.13.1-next.2",
51
- "@eslint-react/core": "1.13.1-next.2",
52
- "@eslint-react/var": "1.13.1-next.2",
53
- "@eslint-react/shared": "1.13.1-next.2",
54
- "@eslint-react/types": "1.13.1-next.2",
55
- "@eslint-react/tools": "1.13.1-next.2"
49
+ "@eslint-react/jsx": "1.13.1",
50
+ "@eslint-react/ast": "1.13.1",
51
+ "@eslint-react/core": "1.13.1",
52
+ "@eslint-react/shared": "1.13.1",
53
+ "@eslint-react/types": "1.13.1",
54
+ "@eslint-react/tools": "1.13.1",
55
+ "@eslint-react/var": "1.13.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/react": "^18.3.5",