Skip to content

Commit 2b2ea3d

Browse files
committed
lint
1 parent 1864c67 commit 2b2ea3d

File tree

9 files changed

+12
-10
lines changed

9 files changed

+12
-10
lines changed

packages/replay-internal/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
"build:tarball": "ts-node ../../scripts/prepack.ts --bundles && npm pack ./build/npm",
5252
"circularDepCheck": "madge --circular src/index.ts",
5353
"clean": "rimraf build sentry-replay-*.tgz",
54-
"fix": "eslint . --format stylish --fix",
54+
"fix": "run-s fix:biome fix:eslint",
55+
"fix:eslint": "eslint . --format stylish --fix",
56+
"fix:biome": "biome check --apply .",
5557
"lint": "eslint . --format stylish",
5658
"test": "vitest",
5759
"test:watch": "vitest --watch",
@@ -74,7 +76,7 @@
7476
"@sentry-internal/rrweb-snapshot": "2.15.0",
7577
"fflate": "^0.8.1",
7678
"jest-matcher-utils": "^29.0.0",
77-
"jsdom": "^24.0.0",
79+
"jsdom": "^21.1.2",
7880
"jsdom-worker": "^0.2.1",
7981
"vitest": "^1.5.3"
8082
},

packages/replay-internal/test.setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { printDiffOrStringify } from 'jest-matcher-utils';
12
import { vi } from 'vitest';
23
import type { Mocked, MockedFunction } from 'vitest';
3-
import { printDiffOrStringify } from 'jest-matcher-utils';
44

55
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
66
import { getClient } from '@sentry/core';

packages/replay-internal/test/integration/autoSaveSession.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { vi } from 'vitest';
22

33
import { EventType } from '@sentry-internal/rrweb';
44

5+
import { saveSession } from '../../src/session/saveSession';
56
import type { RecordingEvent } from '../../src/types';
67
import { addEvent } from '../../src/util/addEvent';
78
import { resetSdkMock } from '../mocks/resetSdkMock';
89
import { useFakeTimers } from '../utils/use-fake-timers';
9-
import { saveSession } from '../../src/session/saveSession';
1010

1111
useFakeTimers();
1212

packages/replay-internal/test/integration/beforeAddRecordingEvent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { vi } from 'vitest';
2-
import type { MockedFunction, MockInstance } from 'vitest';
2+
import type { MockInstance, MockedFunction } from 'vitest';
33

44
import * as SentryBrowserUtils from '@sentry-internal/browser-utils';
55
import * as SentryCore from '@sentry/core';

packages/replay-internal/test/integration/errorSampleRate.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { vi } from 'vitest';
21
import { captureException, getClient } from '@sentry/core';
2+
import { vi } from 'vitest';
33

44
import {
55
BUFFER_CHECKOUT_TIME,

packages/replay-internal/test/integration/sendReplayEvent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { vi } from 'vitest';
2-
import type { MockedFunction, MockInstance } from 'vitest';
2+
import type { MockInstance, MockedFunction } from 'vitest';
33

44
import * as SentryBrowserUtils from '@sentry-internal/browser-utils';
55
import * as SentryCore from '@sentry/core';

packages/replay-internal/test/integration/stop.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { vi } from 'vitest';
2-
import type { MockedFunction, MockInstance } from 'vitest';
2+
import type { MockInstance, MockedFunction } from 'vitest';
33

44
import * as SentryBrowserUtils from '@sentry-internal/browser-utils';
55

packages/replay-internal/test/mocks/mockSdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { vi } from 'vitest';
21
import type { Envelope, Transport, TransportMakeRequestResponse } from '@sentry/types';
2+
import { vi } from 'vitest';
33

44
import type { Replay as ReplayIntegration } from '../../src/integration';
55
import type { ReplayContainer } from '../../src/replay';

packages/replay-internal/test/mocks/resetSdkMock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { vi } from 'vitest';
21
import { resetInstrumentationHandlers } from '@sentry/utils';
2+
import { vi } from 'vitest';
33

44
import type { Replay as ReplayIntegration } from '../../src/integration';
55
import type { ReplayContainer } from '../../src/replay';

0 commit comments

Comments
 (0)