From f362e7a84c4488aa5a85ab509239a22241d5a13f Mon Sep 17 00:00:00 2001 From: Justin Halsall Date: Fri, 3 Nov 2023 11:40:54 +0100 Subject: [PATCH] Fix linting issues (#1347) * Fix linting issues * Apply formatting changes --- packages/rrweb/src/index.ts | 2 +- packages/rrweb/src/record/observer.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/rrweb/src/index.ts b/packages/rrweb/src/index.ts index acf8155689..367df3eb5b 100644 --- a/packages/rrweb/src/index.ts +++ b/packages/rrweb/src/index.ts @@ -8,7 +8,7 @@ export { IncrementalSource, MouseInteractions, ReplayerEvents, - type eventWithTime + type eventWithTime, } from '@rrweb/types'; export type { recordOptions } from './types'; diff --git a/packages/rrweb/src/record/observer.ts b/packages/rrweb/src/record/observer.ts index c6b38cbb96..e23e5a1004 100644 --- a/packages/rrweb/src/record/observer.ts +++ b/packages/rrweb/src/record/observer.ts @@ -1297,9 +1297,13 @@ export function initObservers( const inputHandler = initInputObserver(o); const mediaInteractionHandler = initMediaInteractionObserver(o); + // eslint-disable-next-line @typescript-eslint/no-empty-function let styleSheetObserver = () => {}; + // eslint-disable-next-line @typescript-eslint/no-empty-function let adoptedStyleSheetObserver = () => {}; + // eslint-disable-next-line @typescript-eslint/no-empty-function let styleDeclarationObserver = () => {}; + // eslint-disable-next-line @typescript-eslint/no-empty-function let fontObserver = () => {}; if (o.recordDOM) { styleSheetObserver = initStyleSheetObserver(o, { win: currentWindow });