chore(lint): fixed FE console.logs and changed rules for BE

This commit is contained in:
Leons Aleksandrovs
2025-07-07 20:04:24 +03:00
parent 4d8cffa78f
commit 3ee7139f6e
3 changed files with 15 additions and 57 deletions

View File

@@ -23,7 +23,7 @@
// Try to parse socket message
const { data: message, error: parseErr } = tryCatchSync(() => JSON.parse(event.data));
if (parseErr) {
console.error(`[WS] Error while parsing `, parseErr);
// Stop execution with unparsable data
return;
}
@@ -56,9 +56,8 @@
};
// On socket error
socket.onerror = (err) => {
// Close socket on error, and print to console
console.error('[WS] Error: ', err);
socket.onerror = () => {
// Close socket on error
socket.close();
};
}