|
před 2 roky | |
---|---|---|
.. | ||
README.md | před 2 roky | |
index.js | před 2 roky | |
package.json | před 2 roky |
ESLint Environment for React Native.
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.
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
}
}