Skip to content

Commit

Permalink
Add URLSearchParams and Headers to eslint globals (#27853)
Browse files Browse the repository at this point in the history
Summary:
Fix eslint complaining about `URLSearchParams` and `Headers` not being defined.
Pull Request resolved: #27853

Differential Revision: D19577641

Pulled By: cpojer

fbshipit-source-id: 7019d1519523c7b99a201c6e0b78d0035c9b35a6
  • Loading branch information
sonnyp authored and facebook-github-bot committed Jan 27, 2020
1 parent 316b470 commit 7a13a1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/eslint-config-react-native-community/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ module.exports = {
fetch: false,
FormData: false,
global: false,
Headers: false,
Intl: false,
Map: true,
module: false,
Expand All @@ -111,6 +112,7 @@ module.exports = {
setInterval: false,
setTimeout: false,
URL: false,
URLSearchParams: false,
WebSocket: true,
window: false,
XMLHttpRequest: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-react-native-community/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-native-community/eslint-config",
"version": "0.0.6",
"version": "0.0.7",
"description": "ESLint config for React Native",
"main": "index.js",
"license": "MIT",
Expand Down

0 comments on commit 7a13a1a

Please sign in to comment.