Skip to content

Commit

Permalink
Fix linting issues (#1347)
Browse files Browse the repository at this point in the history
* Fix linting issues

* Apply formatting changes
  • Loading branch information
Juice10 authored Nov 3, 2023
1 parent 1fe39ab commit f362e7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export {
IncrementalSource,
MouseInteractions,
ReplayerEvents,
type eventWithTime
type eventWithTime,
} from '@rrweb/types';

export type { recordOptions } from './types';
Expand Down
4 changes: 4 additions & 0 deletions packages/rrweb/src/record/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit f362e7a

Please sign in to comment.