mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add WebSocket to eslint globals (#27044)
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: https://github.com/facebook/react-native/pull/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
This commit is contained in:
committed by
Facebook Github Bot
parent
cb1171b37a
commit
af8ea06bb4
@@ -106,6 +106,7 @@ module.exports = {
|
||||
setImmediate: true,
|
||||
setInterval: false,
|
||||
setTimeout: false,
|
||||
WebSocket: true,
|
||||
window: false,
|
||||
XMLHttpRequest: false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user