Skip to content

Commit ab9572c

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN/Relay: Upgrade to [email protected] (facebook#50146)
Summary: Upgrades React Native and Relay to `eslint-plugin-react-hooks` from v4.6.0 to v5.2.0. ([CHANGELOG](https://github.com/facebook/react/blob/main/packages/eslint-plugin-react-hooks/CHANGELOG.md)) Changelog: [General][Breaking] Updated `eslint-config-react-native` to depend on `eslint-plugin-react-hooks` v5.2.0 from v4.6.0. This includes a breaking change in which ESLint will no longer recognize component names that start with 1 or more underscores followed by a capital letter. (facebook/react#25162) Reviewed By: captbaritone Differential Revision: D71483664
1 parent c2864c1 commit ab9572c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"eslint-plugin-jsx-a11y": "^6.6.0",
7676
"eslint-plugin-lint": "^1.0.0",
7777
"eslint-plugin-react": "^7.30.1",
78-
"eslint-plugin-react-hooks": "^4.6.0",
78+
"eslint-plugin-react-hooks": "^5.2.0",
7979
"eslint-plugin-react-native": "^4.0.0",
8080
"eslint-plugin-redundant-undefined": "^0.4.0",
8181
"eslint-plugin-relay": "^1.8.3",

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": "^27.9.0",
3232
"eslint-plugin-react": "^7.30.1",
33-
"eslint-plugin-react-hooks": "^4.6.0",
33+
"eslint-plugin-react-hooks": "^5.2.0",
3434
"eslint-plugin-react-native": "^4.0.0"
3535
},
3636
"peerDependencies": {

packages/react-native/types/__typetests__/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ class CustomView extends React.Component {
429429
class Welcome extends React.Component<
430430
ElementProps<View> & {color: string; bgColor?: null | undefined | string}
431431
> {
432-
rootViewRef = React.useRef<View>(null);
433-
customViewRef = React.useRef<CustomView>(null);
432+
rootViewRef = React.createRef<View>();
433+
customViewRef = React.createRef<CustomView>();
434434

435435
testNativeMethods() {
436436
if (this.rootViewRef.current != null) {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3943,10 +3943,10 @@ eslint-plugin-lint@^1.0.0:
39433943
resolved "https://registry.yarnpkg.com/eslint-plugin-lint/-/eslint-plugin-lint-1.0.0.tgz#bfc98ad0d1b5ea437b0072ec735c459df4d084b5"
39443944
integrity sha512-hYl6F/lYLjycZmHYnpTk3dlliNxjy9breG/9URhdQmPZibmENjM378EPKvSdIDBOV+Zw/Z0d3EaJhLTjcWTovA==
39453945

3946-
eslint-plugin-react-hooks@^4.6.0:
3947-
version "4.6.2"
3948-
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz#c829eb06c0e6f484b3fbb85a97e57784f328c596"
3949-
integrity sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==
3946+
eslint-plugin-react-hooks@^5.2.0:
3947+
version "5.2.0"
3948+
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-5.2.0.tgz#1be0080901e6ac31ce7971beed3d3ec0a423d9e3"
3949+
integrity sha512-+f15FfK64YQwZdJNELETdn5ibXEUQmW1DZL6KXhNnc2heoy/sg9VJJeT7n8TlMWouzWqSWavFkIhHyIbIAEapg==
39503950

39513951
eslint-plugin-react-native-globals@^0.1.1:
39523952
version "0.1.2"

0 commit comments

Comments
 (0)