fix(ci): address PR review and quality gate

This commit is contained in:
2026-07-22 23:57:47 -07:00
parent a39ca2cbac
commit a173b108d1
8 changed files with 43 additions and 22 deletions
@@ -80,9 +80,7 @@ test('annotateTokens resolves maturity through the kana reading fallback', () =>
reading: string | undefined;
allowReadingOnlyMatch: boolean | undefined;
}> = [];
const tokens = [
makeToken({ surface: '大体', headword: '大体', reading: 'だいたい', endPos: 2 }),
];
const tokens = [makeToken({ surface: '大体', headword: '大体', reading: 'だいたい', endPos: 2 })];
const result = annotateTokens(
tokens,
@@ -646,7 +646,9 @@ function computeTokenKnownMaturity(
if (!fallbackReading || fallbackReading === matchText.trim()) {
return undefined;
}
return getKnownWordTier(fallbackReading, undefined, { allowReadingOnlyMatch: false }) ?? undefined;
return (
getKnownWordTier(fallbackReading, undefined, { allowReadingOnlyMatch: false }) ?? undefined
);
}
function filterTokenFrequencyRank(