Skip to content

Commit 370b173

Browse files
committed
lint fix
1 parent e8479b5 commit 370b173

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/addons/consoleCatcher.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ export class ConsoleCatcher {
196196
const oldFunction = window.console[method].bind(window.console);
197197

198198
window.console[method] = (...args: unknown[]): void => {
199-
const stack = new Error().stack?.split('\n').slice(2).join('\n') || '';
199+
const stack = new Error().stack?.split('\n').slice(2)
200+
.join('\n') || '';
200201
const { message, styles } = this.formatConsoleArgs(args);
201202

202203
const logEvent: ConsoleLogEvent = {
@@ -232,7 +233,7 @@ export class ConsoleCatcher {
232233
*/
233234
// eslint-disable-next-line @typescript-eslint/member-ordering
234235
public getConsoleLogStack(): ConsoleLogEvent[] {
235-
return [...this.consoleOutput];
236+
return [ ...this.consoleOutput ];
236237
}
237238
}
238239
// TODO:: 1) replace window with globalThis for better compatibility with different environments

0 commit comments

Comments
 (0)