Skip to content

Commit a4d177b

Browse files
committed
refactor(core): linter fixes
1 parent 839a95a commit a4d177b

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

packages/core/src/transports/transport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { CatcherMessage } from '@hawk.so/types';
2-
import { CatcherMessageType } from '@hawk.so/types';
2+
import type { CatcherMessageType } from '@hawk.so/types';
33

44
/**
55
* Transport interface — anything that can send a CatcherMessage

packages/core/src/utils/validation.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import type { AffectedUser, Breadcrumb, EventAddons, EventContext, EventData } f
33

44
/**
55
* Returns true if value is a plain object (not null, array, Date, Map, etc.)
6+
*
7+
* @param value - value to check
68
*/
79
export function isPlainObject(value: unknown): value is Record<string, unknown> {
810
return Object.prototype.toString.call(value) === '[object Object]';

packages/javascript/src/catcher.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ import type {
1414
import type { JavaScriptCatcherIntegrations } from '@/types';
1515
import { ConsoleCatcher } from './addons/consoleCatcher';
1616
import { BreadcrumbManager } from './addons/breadcrumbs';
17-
import { isValidEventPayload, validateContext, validateUser } from './utils/validation';
18-
import { HawkUserManager, isLoggerSet, log, setLogger } from '@hawk.so/core';
17+
import {
18+
HawkUserManager,
19+
isLoggerSet,
20+
isValidEventPayload,
21+
log,
22+
setLogger,
23+
validateContext,
24+
validateUser
25+
} from '@hawk.so/core';
1926
import { HawkLocalStorage } from './storages/hawk-local-storage';
2027
import { createBrowserLogger } from './logger/logger';
21-
import { BrowserRandomGenerator } from "./utils/random";
28+
import { BrowserRandomGenerator } from './utils/random';
2229

2330
/**
2431
* Allow to use global VERSION, that will be overwritten by Webpack

0 commit comments

Comments
 (0)