mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
28101284a9
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
@react-native/eslint-config
Installation
yarn add --dev eslint prettier @react-native/eslint-config
Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like
Usage
Add to your eslint config (.eslintrc, or eslintConfig field in package.json):
{
"extends": "@react-native"
}