refactor: eliminate eslint errors (#920)
* refactor: eliminate eslint errors as many as I can * refactor: fix more eslint errors in the record module * LINT: fix @typescript-eslint/unbound-method * LINT: fix all eslint errors in source code * LINT: fix as many eslint warnings as possible Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
This commit is contained in:
@@ -70,7 +70,7 @@ class LogReplayPlugin {
|
||||
]
|
||||
: console.log;
|
||||
logger(
|
||||
...data.payload.map((s) => JSON.parse(s)),
|
||||
...data.payload.map((s) => JSON.parse(s) as object),
|
||||
this.formatMessage(data),
|
||||
);
|
||||
};
|
||||
@@ -84,7 +84,7 @@ class LogReplayPlugin {
|
||||
]
|
||||
: console[level];
|
||||
logger(
|
||||
...data.payload.map((s) => JSON.parse(s)),
|
||||
...data.payload.map((s) => JSON.parse(s) as object),
|
||||
this.formatMessage(data),
|
||||
);
|
||||
};
|
||||
@@ -95,7 +95,7 @@ class LogReplayPlugin {
|
||||
|
||||
/**
|
||||
* format the trace data to a string
|
||||
* @param data the log data
|
||||
* @param data - the log data
|
||||
*/
|
||||
private formatMessage(data: LogData): string {
|
||||
if (data.trace.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user