diff --git a/eslint.config.js b/eslint.config.js index 914e842..ec906bf 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -20,6 +20,7 @@ const config = [ { rules: { "vue/attributes-order": ["warn", { alphabetical: true }], + "no-undef": "off", }, }, ]; diff --git a/nuxt.config.ts b/nuxt.config.ts index a9db973..4ecbe7c 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -42,7 +42,7 @@ export default defineNuxtConfig({ }, pinia: { - // @ts-ignore + // @ts-expect-error somehow there is no types for this autoImports: ["defineStore", "acceptHMRUpdate"], }, diff --git a/playwright.config.ts b/playwright.config.ts index 43b5249..55e304e 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -3,7 +3,7 @@ import { defineConfig, devices } from "@playwright/test"; const port = process.env.PORT ?? 3000; -const baseUrl = `http://localhost:${port}`; +const baseUrl = `http://localhost:${String(port)}`; export default defineConfig({ testDir: "./e2e", diff --git a/src/components/CombinedMapChart.vue b/src/components/CombinedMapChart.vue index 85c5b76..5cd440e 100644 --- a/src/components/CombinedMapChart.vue +++ b/src/components/CombinedMapChart.vue @@ -85,7 +85,7 @@ function pointFormatter() { // @ts-expect-error todo find out how to type this function correctly .map((query) => [query.userInput, this[query.userInput], query.color]) .sort((a, b) => b[1] - a[1]); - // @ts-expect-error + // @ts-expect-error once again highcharts interal funciton, this is okay return `${this.id}
${queryArray .map( diff --git a/src/components/DataDisplay/DataDisplayCollocations.vue b/src/components/DataDisplay/DataDisplayCollocations.vue index 4606d33..9b66cd0 100644 --- a/src/components/DataDisplay/DataDisplayCollocations.vue +++ b/src/components/DataDisplay/DataDisplayCollocations.vue @@ -139,23 +139,23 @@ function pointFormatter() { this.name + "
" + "Frequency: " + - // @ts-expect-error + // @ts-expect-error this is used inside the table rendering. this.freq + "
" + "Collocational Frequency: " + - // @ts-expect-error + // @ts-expect-error this is used inside the table rendering. this.coll_freq + "
" + "D: " + - // @ts-expect-error + // @ts-expect-error this is used inside the table rendering. this.d + "
" + "M: " + - // @ts-expect-error + // @ts-expect-error this is used inside the table rendering. this.m + "
" + "T: " + - // @ts-expect-error + // @ts-expect-error this is used inside the table rendering. this.t ); } diff --git a/src/components/DataDisplay/DataDisplayKeywordInContext.vue b/src/components/DataDisplay/DataDisplayKeywordInContext.vue index 0628389..ce0d592 100644 --- a/src/components/DataDisplay/DataDisplayKeywordInContext.vue +++ b/src/components/DataDisplay/DataDisplayKeywordInContext.vue @@ -51,10 +51,9 @@ const q = computed(() => date: Tbl_refs![1] ?? "", source: Tbl_refs![4] ?? "", region: Tbl_refs![2] ?? "", - // @ts-ignore wrong types in api lib + // @ts-expect-error wrong types in api lib left: Left!.map(({ str, strc }) => str || strc).join(" "), word: typeof Kwic![0] !== "undefined" ? Kwic![0].str : "", - // @ts-ignore wrong types in api lib right: Right!.map(({ str }: { str: string }) => str).join(" "), docid: Tbl_refs![0] ?? "", topic: Tbl_refs![3] ?? "", diff --git a/src/components/DataDisplay/DataDisplayMediaSource.vue b/src/components/DataDisplay/DataDisplayMediaSource.vue index 5e04b54..44c789a 100644 --- a/src/components/DataDisplay/DataDisplayMediaSource.vue +++ b/src/components/DataDisplay/DataDisplayMediaSource.vue @@ -8,7 +8,7 @@ const t = useTranslations("Corpsum"); const queryStore = useQueryStore(); const { queries } = storeToRefs(queryStore); -const mode = ref("relative"); +const mode: Ref<"absolute" | "relative"> = ref("relative"); const expand = ref(false); const api = useApiClient(); @@ -105,7 +105,7 @@ const isStacked = computed(() => chartMode.value === "stack");