mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
387250112e
Summary: In a future release of React Native, string refs will no longer be supported. This increases the severity of the `no-string-refs` lint rule to convey this. Changelog: [General][Changed] - `no-string-refs` is now a lint error Reviewed By: kassens Differential Revision: D56826663 fbshipit-source-id: 603f5b205bb9fd8a5dcb8ee917f6a2ba1ac47e6e
@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"
}