Skip to content

Commit 2810128

Browse files
cipolleschimeta-codesync[bot]
authored andcommitted
Bump eslint-plugin-react-hooks to 7.0.1 (facebook#54303)
Summary: Pull Request resolved: facebook#54303 React 19.2.0 introduces the `useEffectEvent`, which are functions that can be used inside `useEffect` but that should not be listed in the `useEffect` dependencies. Without this bump, eslint will still tell the user to add the function declared with `useEffectEvent` into the dependency array of a useEffect. ## Changelog: [General][Changed] - Bump eslint-plugin-react-hooks to 7.0.1 Reviewed By: huntie Differential Revision: D85658780 fbshipit-source-id: 75860f06a2875b53de61f4f99572277d9d04839f
1 parent a18f7a7 commit 2810128

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@
120120
"ws": "^7.5.10"
121121
},
122122
"resolutions": {
123-
"eslint-plugin-react-hooks": "6.1.0-canary-12bc60f5-20250613",
124123
"react-is": "19.2.0",
125124
"on-headers": "1.1.0",
126125
"compression": "1.8.1"

packages/eslint-config-react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"eslint-plugin-ft-flow": "^2.0.1",
3131
"eslint-plugin-jest": "^29.0.1",
3232
"eslint-plugin-react": "^7.30.1",
33-
"eslint-plugin-react-hooks": "^5.2.0",
33+
"eslint-plugin-react-hooks": "^7.0.1",
3434
"eslint-plugin-react-native": "^4.0.0"
3535
},
3636
"peerDependencies": {

yarn.lock

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@
743743
dependencies:
744744
"@babel/helper-plugin-utils" "^7.25.9"
745745

746-
"@babel/plugin-transform-private-methods@^7.24.4", "@babel/plugin-transform-private-methods@^7.24.7", "@babel/plugin-transform-private-methods@^7.25.9":
746+
"@babel/plugin-transform-private-methods@^7.24.7", "@babel/plugin-transform-private-methods@^7.25.9":
747747
version "7.27.1"
748748
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.27.1.tgz#fdacbab1c5ed81ec70dfdbb8b213d65da148b6af"
749749
integrity sha512-10FVt+X55AjRAYI9BrdISN9/AQWHqldOeZDUoLyif1Kn05a56xVBXb8ZouL8pZ9jem8QpXaOt8TS7RHUIS+GPA==
@@ -4325,17 +4325,16 @@ eslint-plugin-jsx-a11y@^6.6.0:
43254325
safe-regex-test "^1.0.3"
43264326
string.prototype.includes "^2.0.0"
43274327

4328-
eslint-plugin-react-hooks@6.1.0-canary-12bc60f5-20250613, eslint-plugin-react-hooks@^5.2.0:
4329-
version "6.1.0-canary-12bc60f5-20250613"
4330-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-6.1.0-canary-12bc60f5-20250613.tgz#fac24a3cf8c2b7397b06cc39e016b6b4acad1078"
4331-
integrity sha512-K+594rswc9TF1sxVO/Mp5QxxgD6tDsFT/FiwJ+O0/z9+Id6IKUyLn5S7TP24sIij6caUE6aRSEaOqkeIqmzK9A==
4328+
eslint-plugin-react-hooks@^7.0.1:
4329+
version "7.0.1"
4330+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz#66e258db58ece50723ef20cc159f8aa908219169"
4331+
integrity sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==
43324332
dependencies:
43334333
"@babel/core" "^7.24.4"
43344334
"@babel/parser" "^7.24.4"
4335-
"@babel/plugin-transform-private-methods" "^7.24.4"
43364335
hermes-parser "^0.25.1"
4337-
zod "^3.22.4"
4338-
zod-validation-error "^3.0.3"
4336+
zod "^3.25.0 || ^4.0.0"
4337+
zod-validation-error "^3.5.0 || ^4.0.0"
43394338

43404339
eslint-plugin-react-native-globals@^0.1.1:
43414340
version "0.1.2"
@@ -9459,12 +9458,12 @@ yocto-queue@^0.1.0:
94599458
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
94609459
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
94619460

9462-
zod-validation-error@^3.0.3:
9463-
version "3.5.2"
9464-
resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-3.5.2.tgz#5af463c1acd4662e6b2610a75260931dbcb43a56"
9465-
integrity sha512-mdi7YOLtram5dzJ5aDtm1AG9+mxRma1iaMrZdYIpFO7epdKBUwLHIxTF8CPDeCQ828zAXYtizrKlEJAtzgfgrw==
9461+
"zod-validation-error@^3.5.0 || ^4.0.0":
9462+
version "4.0.2"
9463+
resolved "https://registry.yarnpkg.com/zod-validation-error/-/zod-validation-error-4.0.2.tgz#bc605eba49ce0fcd598c127fee1c236be3f22918"
9464+
integrity sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==
94669465

9467-
zod@^3.22.4:
9468-
version "3.25.73"
9469-
resolved "https://registry.yarnpkg.com/zod/-/zod-3.25.73.tgz#d68b1331cab13488f79c14f4f78832a00cdad0bb"
9470-
integrity sha512-fuIKbQAWQl22Ba5d1quwEETQYjqnpKVyZIWAhbnnHgnDd3a+z4YgEfkI5SZ2xMELnLAXo/Flk2uXgysZNf0uaA==
9466+
"zod@^3.25.0 || ^4.0.0":
9467+
version "4.1.12"
9468+
resolved "https://registry.yarnpkg.com/zod/-/zod-4.1.12.tgz#64f1ea53d00eab91853195653b5af9eee68970f0"
9469+
integrity sha512-JInaHOamG8pt5+Ey8kGmdcAcg3OL9reK8ltczgHTAwNhMys/6ThXHityHxVV2p3fkw/c+MAvBHFVYHFZDmjMCQ==

0 commit comments

Comments
 (0)