mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
4de592756b
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50146 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. (https://github.com/facebook/react/pull/25162) Reviewed By: captbaritone Differential Revision: D71483664 fbshipit-source-id: 6c78e196a9ea8dca9c285cb43909cfe3749ddd28
@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"
}