Skip to content

Commit 31aed34

Browse files
committed
Address lints
1 parent e54d17b commit 31aed34

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/app/plugins/search-indexer/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ function scheduleFlush(): void {
140140
}
141141

142142
function post(msg: IndexWorkerMessageOut): void {
143-
self.postMessage(msg, self.location.origin);
143+
// oxlint-disable-next-line unicorn/require-post-message-target-origin
144+
self.postMessage(msg);
144145
}
145146

146147
function makeTypeFilter(

src/app/plugins/search-indexer/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export type SearchIndexEvent = {
1313
filename?: string;
1414
url?: string;
1515
info?: IFileInfo;
16-
file?: unknown;
16+
// oxlint-disable-next-line typescript/no-explicit-any
17+
file?: any;
1718
};
1819

1920
export enum WorkerMessageTypeIn {

0 commit comments

Comments
 (0)