1 | # eslint-config-react-native-community
|
2 |
|
3 | [![Version][version-badge]][package]
|
4 |
|
5 | ## Installation
|
6 |
|
7 | ```
|
8 | yarn add --dev eslint prettier @react-native-community/eslint-config
|
9 | ```
|
10 |
|
11 | *Note: We're using `yarn` to install deps. Feel free to change commands to use `npm` 3+ and `npx` if you like*
|
12 |
|
13 | ## Usage
|
14 |
|
15 | Add to your eslint config (`.eslintrc`, or `eslintConfig` field in `package.json`):
|
16 |
|
17 | ```json
|
18 | {
|
19 | "extends": "@react-native-community"
|
20 | }
|
21 | ```
|
22 |
|
23 | [version-badge]: https://img.shields.io/npm/v/@react-native-community/eslint-config.svg?style=flat-square
|
24 | [package]: https://www.npmjs.com/package/@react-native-community/eslint-config
|
25 |
|