Skip to content

Commit

Permalink
Add WebSocket to eslint globals (#27044)
Browse files Browse the repository at this point in the history
Summary:
WebSocket is giving an error by eslint. ('WebSocket is not defined').

[websocket-support](https://facebook.github.io/react-native/docs/network#websocket-support)

## Changelog
[General] [Fixed] - Add WebSocket to eslint globals
Pull Request resolved: #27044

Test Plan: Run eslint on a react native project using WebSocket. Eslint verification should pass.

Differential Revision: D18223891

Pulled By: cpojer

fbshipit-source-id: c4adfde07078133930aa0ed80be5615d128f4148
  • Loading branch information
dr2009 authored and facebook-github-bot committed Oct 30, 2019
1 parent cb1171b commit af8ea06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config-react-native-community/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ module.exports = {
setImmediate: true,
setInterval: false,
setTimeout: false,
WebSocket: true,
window: false,
XMLHttpRequest: false,
},
Expand Down

0 comments on commit af8ea06

Please sign in to comment.