Package Exports
- eslint-plugin-react-native-globals
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-react-native-globals) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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
}
}