eslint-plugin-react-hooks 7.1.0-canary-f646e8ff-20251104 → 7.1.0-canary-dd048c3b-20251105

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.
@@ -76,6 +76,8 @@ declare const plugin: {
76
76
  'CallExpression:exit'(node: estree.CallExpression & Rule.NodeParentExtension): void;
77
77
  FunctionDeclaration(node: estree.FunctionDeclaration & Rule.NodeParentExtension): void;
78
78
  ArrowFunctionExpression(node: estree.ArrowFunctionExpression & Rule.NodeParentExtension): void;
79
+ ComponentDeclaration(node: any): void;
80
+ HookDeclaration(node: any): void;
79
81
  };
80
82
  };
81
83
  };
@@ -58210,6 +58210,12 @@ const rule = {
58210
58210
  recordAllUseEffectEventFunctions(getScope(node));
58211
58211
  }
58212
58212
  },
58213
+ ComponentDeclaration(node) {
58214
+ recordAllUseEffectEventFunctions(getScope(node));
58215
+ },
58216
+ HookDeclaration(node) {
58217
+ recordAllUseEffectEventFunctions(getScope(node));
58218
+ },
58213
58219
  };
58214
58220
  },
58215
58221
  };
@@ -58037,6 +58037,12 @@ const rule = {
58037
58037
  recordAllUseEffectEventFunctions(getScope(node));
58038
58038
  }
58039
58039
  },
58040
+ ComponentDeclaration(node) {
58041
+ recordAllUseEffectEventFunctions(getScope(node));
58042
+ },
58043
+ HookDeclaration(node) {
58044
+ recordAllUseEffectEventFunctions(getScope(node));
58045
+ },
58040
58046
  };
58041
58047
  },
58042
58048
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-hooks",
3
3
  "description": "ESLint rules for React Hooks",
4
- "version": "7.1.0-canary-f646e8ff-20251104",
4
+ "version": "7.1.0-canary-dd048c3b-20251105",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/facebook/react.git",