diff --git a/src/core/services/anilist/cover-art-fetcher.ts b/src/core/services/anilist/cover-art-fetcher.ts index 4ab56e0..dcd0bf8 100644 --- a/src/core/services/anilist/cover-art-fetcher.ts +++ b/src/core/services/anilist/cover-art-fetcher.ts @@ -257,7 +257,11 @@ export function createCoverArtFetcher( logger: Logger, options: CoverArtFetcherOptions = {}, ): CoverArtFetcher { - const resolveCanonicalTitle = (db: DatabaseSync, videoId: number, fallbackTitle: string): string => { + const resolveCanonicalTitle = ( + db: DatabaseSync, + videoId: number, + fallbackTitle: string, + ): string => { const row = db .prepare( ` diff --git a/src/core/services/stats-window.test.ts b/src/core/services/stats-window.test.ts index ea4d182..8bc631c 100644 --- a/src/core/services/stats-window.test.ts +++ b/src/core/services/stats-window.test.ts @@ -158,7 +158,10 @@ test('promoteStatsWindowLevel raises stats above overlay level on macOS', () => setAlwaysOnTop: (flag: boolean, level?: string, relativeLevel?: number) => { calls.push(`always-on-top:${flag}:${level ?? 'none'}:${relativeLevel ?? 0}`); }, - setVisibleOnAllWorkspaces: (visible: boolean, options?: { visibleOnFullScreen?: boolean }) => { + setVisibleOnAllWorkspaces: ( + visible: boolean, + options?: { visibleOnFullScreen?: boolean }, + ) => { calls.push( `all-workspaces:${visible}:${options?.visibleOnFullScreen === true ? 'fullscreen' : 'plain'}`, ); diff --git a/src/core/services/tokenizer/annotation-stage.ts b/src/core/services/tokenizer/annotation-stage.ts index 683fe88..026c9c7 100644 --- a/src/core/services/tokenizer/annotation-stage.ts +++ b/src/core/services/tokenizer/annotation-stage.ts @@ -638,9 +638,10 @@ export function annotateTokens( ? computeTokenKnownStatus(token, deps.isKnownWord, deps.knownWordMatchMode) : false; - const frequencyRank = frequencyEnabled && !prioritizedNameMatch - ? filterTokenFrequencyRank(token, pos1Exclusions, pos2Exclusions) - : undefined; + const frequencyRank = + frequencyEnabled && !prioritizedNameMatch + ? filterTokenFrequencyRank(token, pos1Exclusions, pos2Exclusions) + : undefined; const jlptLevel = jlptEnabled && !prioritizedNameMatch @@ -650,8 +651,7 @@ export function annotateTokens( return { ...token, isKnown, - isNPlusOneTarget: - nPlusOneEnabled && !prioritizedNameMatch ? token.isNPlusOneTarget : false, + isNPlusOneTarget: nPlusOneEnabled && !prioritizedNameMatch ? token.isNPlusOneTarget : false, frequencyRank, jlptLevel, }; diff --git a/src/main/runtime/character-dictionary-auto-sync.ts b/src/main/runtime/character-dictionary-auto-sync.ts index 9873691..6f901c7 100644 --- a/src/main/runtime/character-dictionary-auto-sync.ts +++ b/src/main/runtime/character-dictionary-auto-sync.ts @@ -311,7 +311,7 @@ export function createCharacterDictionaryAutoSyncRuntimeService( mediaId: snapshot.mediaId, mediaTitle: snapshot.mediaTitle, message: buildBuildingMessage(snapshot.mediaTitle), - }); + }); deps.logInfo?.('[dictionary:auto-sync] rebuilding merged dictionary for active anime set'); merged = await deps.buildMergedDictionary(nextActiveMediaIdValues); } diff --git a/src/main/runtime/composers/ipc-runtime-composer.test.ts b/src/main/runtime/composers/ipc-runtime-composer.test.ts index 9688b0a..878a738 100644 --- a/src/main/runtime/composers/ipc-runtime-composer.test.ts +++ b/src/main/runtime/composers/ipc-runtime-composer.test.ts @@ -52,6 +52,7 @@ test('composeIpcRuntimeHandlers returns callable IPC handlers and registration b getKeybindings: () => [], getConfiguredShortcuts: () => ({}) as never, getStatsToggleKey: () => 'Backquote', + getMarkWatchedKey: () => 'KeyW', getControllerConfig: () => ({}) as never, saveControllerConfig: () => {}, saveControllerPreference: () => {}, diff --git a/src/renderer/subtitle-render.test.ts b/src/renderer/subtitle-render.test.ts index e3f8705..aa22c9f 100644 --- a/src/renderer/subtitle-render.test.ts +++ b/src/renderer/subtitle-render.test.ts @@ -522,7 +522,10 @@ test('getFrequencyRankLabelForToken returns rank only for frequency-colored toke assert.equal(getFrequencyRankLabelForToken(knownToken, settings), '20'); assert.equal(getFrequencyRankLabelForToken(nPlusOneToken, settings), '20'); assert.equal(getFrequencyRankLabelForToken(outOfRangeToken, settings), null); - assert.equal(getFrequencyRankLabelForToken(nameToken, { ...settings, nameMatchEnabled: true }), null); + assert.equal( + getFrequencyRankLabelForToken(nameToken, { ...settings, nameMatchEnabled: true }), + null, + ); }); test('getJlptLevelLabelForToken returns level when token has jlpt metadata', () => { diff --git a/src/renderer/subtitle-render.ts b/src/renderer/subtitle-render.ts index 1316630..94d9571 100644 --- a/src/renderer/subtitle-render.ts +++ b/src/renderer/subtitle-render.ts @@ -95,7 +95,10 @@ function hasPrioritizedNameMatch( token: MergedToken, tokenRenderSettings?: Partial>, ): boolean { - return (tokenRenderSettings?.nameMatchEnabled ?? DEFAULT_NAME_MATCH_ENABLED) && token.isNameMatch === true; + return ( + (tokenRenderSettings?.nameMatchEnabled ?? DEFAULT_NAME_MATCH_ENABLED) && + token.isNameMatch === true + ); } function sanitizeFrequencyTopX(value: unknown, fallback: number): number {