README.md 593 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
eslint-plugin-react-native-globals
==================================

ESLint Environment for React Native.

## Installation

```sh
yarn add --dev eslint eslint-plugin-react-native-globals
```

**Note:** If you installed ESLint globally then you must also install `eslint-plugin-react-native-globals` globally.

## Usage

Add `react-native-globals` to the `plugins` section of your `.eslintrc` configuration file, and then add `react-native-globals/all` to the `env` section:

```json
{
  "plugins": [
    "react-native-globals"
  ],

  "env": {
    "react-native-globals/all": true
  }
}
```