Skip to content

Commit d830ab3

Browse files
committed
Suppress console usage lints
1 parent 2151a0c commit d830ab3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

frontend/src/utilities/panic.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export function panicProxy(module: any) {
3434
// Intercept console.error() for panic messages sent by code in the WASM toolchain
3535
let panicDetails = "";
3636

37+
// eslint-disable-next-line no-console
3738
const error = console.error.bind(console);
39+
// eslint-disable-next-line no-console
3840
console.error = (...args) => {
3941
const details = "".concat(...args).trim();
4042
if (details.startsWith("panicked at")) panicDetails = details;

frontend/src/utilities/response-handler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ export function handleResponse(responseType: string, responseData: any) {
4444
if (callback && data) {
4545
callback(data);
4646
} else if (data) {
47+
// eslint-disable-next-line no-console
4748
console.error(`Received a Response of type "${responseType}" but no handler was registered for it from the client.`);
4849
} else {
50+
// eslint-disable-next-line no-console
4951
console.error(`Received a Response of type "${responseType}" but but was not able to parse the data.`);
5052
}
5153
}

0 commit comments

Comments
 (0)