summaryrefslogtreecommitdiff
path: root/dev/dictionary-validate.js
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-09 15:42:35 +0800
committerGitHub <noreply@github.com>2024-05-09 07:42:35 +0000
commit13278a5cf67de69678d8c4c5fb97e6eb00c94c11 (patch)
tree1d77bcf97bb9c6f08c88c9f80ea0da735d5721c2 /dev/dictionary-validate.js
parent77fa1d0f64b66d6e4fe9c8795c7844206edbcaf2 (diff)
Update eslint unsafe rule (#887)
* Enable @typescript-eslint/no-unsafe-assignment * Updates * Add missing import * Updates * Fix types? * Fix tests * Address comments * Move TextProcessorVariant to types * Update types/ext/translation-internal.d.ts Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com> Signed-off-by: James Maa <jmaa@berkeley.edu> --------- Signed-off-by: James Maa <jmaa@berkeley.edu> Co-authored-by: toasted-nutbread <toasted-nutbread@users.noreply.github.com> Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
Diffstat (limited to 'dev/dictionary-validate.js')
-rw-r--r--dev/dictionary-validate.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/dev/dictionary-validate.js b/dev/dictionary-validate.js
index b770f311..3c7cf30b 100644
--- a/dev/dictionary-validate.js
+++ b/dev/dictionary-validate.js
@@ -80,6 +80,7 @@ async function validateDictionaryBanks(mode, entries, schemasDetails) {
export async function validateDictionary(mode, archiveData, schemas) {
const entries = await getDictionaryArchiveEntries(archiveData);
const indexFileName = getIndexFileName();
+ /** @type {import('dictionary-data').Index} */
const index = await getDictionaryArchiveJson(entries, indexFileName);
const version = index.format || index.version;