react-native-macos/packages/eslint-config-react-native-...
Sonny Piers 7a13a1a88f Add URLSearchParams and Headers to eslint globals (#27853)
Summary:
Fix eslint complaining about `URLSearchParams` and `Headers` not being defined.
Pull Request resolved: https://github.com/facebook/react-native/pull/27853

Differential Revision: D19577641

Pulled By: cpojer

fbshipit-source-id: 7019d1519523c7b99a201c6e0b78d0035c9b35a6
2020-01-27 02:30:29 -08:00
..
README.md Rename eslint config to 'eslint-config-react-native-community' (#23718) 2019-03-03 20:39:43 -08:00
index.js Add URLSearchParams and Headers to eslint globals (#27853) 2020-01-27 02:30:29 -08:00
package.json Add URLSearchParams and Headers to eslint globals (#27853) 2020-01-27 02:30:29 -08:00
yarn.lock Add community-eslint-plugin to eslint-config dependency (#27680) 2020-01-06 01:17:27 -08:00

README.md

eslint-config-react-native-community

Installation

yarn add --dev eslint @react-native-community/eslint-config

Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like

Usage

Add to your eslint config (.eslintrc, or eslintConfig field in package.json):

{
    "extends": "@react-native-community"
}