mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
65856954d6
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42300 Changelog: [Internal] The version of the `keyword-spacing` lint rule we have installed is apparently buggy. Either way it's unnecessary since we use Prettier. Reviewed By: christophpurrer Differential Revision: D52799550 fbshipit-source-id: 2e199938d45c554039b2117163fd403f236bf752
@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"
}