Skip to content

Commit af8ea06

Browse files
dr2009facebook-github-bot
authored andcommitted
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: #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
1 parent cb1171b commit af8ea06

File tree

1 file changed

+1
-0
lines changed
  • packages/eslint-config-react-native-community

1 file changed

+1
-0
lines changed

packages/eslint-config-react-native-community/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ module.exports = {
106106
setImmediate: true,
107107
setInterval: false,
108108
setTimeout: false,
109+
WebSocket: true,
109110
window: false,
110111
XMLHttpRequest: false,
111112
},

0 commit comments

Comments
 (0)