lxy 1c63d88d40 demo 2 years ago
..
README.md 1c63d88d40 demo 2 years ago
index.js 1c63d88d40 demo 2 years ago
package.json 1c63d88d40 demo 2 years ago

README.md

eslint-plugin-react-native-globals

ESLint Environment for React Native.

Installation

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:

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

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