workspace: update eslint rule (#1027)

This commit is contained in:
undefined authored and GitHub committed 2025-08-06 18:51:25 +01:00
1 parent 05c3b8f2bd
commit cee3c00ddb
150 files changed
+1069 -1043

No files matched your search

@@ -1,4 +1,3 @@
/* eslint-disable no-restricted-globals */
/// <reference no-default-lib="true" />
/// <reference lib="webworker" />
import ReconnectingWebsocket from 'reconnecting-websocket';
@@ -64,10 +63,10 @@ function initConn(path: string, port: MessagePort, cookie: any) {
console.log('Connected');
broadcastMsg({ type: 'open' });
conn.send(JSON.stringify({
'operation': 'subscribe',
'request_id': Math.random().toString(16).substring(2),
'credential': lcookie,
'channels': ['message'],
operation: 'subscribe',
request_id: Math.random().toString(16).substring(2),
credential: lcookie,
channels: ['message'],
}));
};
conn.onerror = () => broadcastMsg({ type: 'error' });