chore(diagnostics-client): document console capture
What changed: - Added a scoped no-console justification around the console capture wrapper. Warning impact: - @bytelyst/diagnostics-client scoped lint: 8 warnings -> 0. - Workspace lint: 101 -> 93 warnings. Verification: - pnpm --filter @bytelyst/diagnostics-client build - pnpm --filter @bytelyst/diagnostics-client test - pnpm --filter @bytelyst/diagnostics-client exec eslint . --ext .ts,.tsx - pnpm lint
This commit is contained in:
parent
2218067ef0
commit
91e08bfda0
@ -492,6 +492,7 @@ export class DiagnosticsClient {
|
||||
/**
|
||||
* Setup console capture
|
||||
*/
|
||||
/* eslint-disable no-console -- This method intentionally wraps console APIs to capture diagnostics, then forwards to the originals. */
|
||||
private setupConsoleCapture(): void {
|
||||
const originalConsole = {
|
||||
log: console.log.bind(console),
|
||||
@ -526,6 +527,7 @@ export class DiagnosticsClient {
|
||||
|
||||
this.breadcrumbs.add('diagnostics', 'Console capture enabled');
|
||||
}
|
||||
/* eslint-enable no-console */
|
||||
|
||||
/**
|
||||
* Setup error capture
|
||||
|
||||
Loading…
Reference in New Issue
Block a user