From 5cefaf2ae42952085e771b55997d45138fd73247 Mon Sep 17 00:00:00 2001 From: ctot-nondef Date: Mon, 9 Sep 2024 16:48:18 +0200 Subject: [PATCH] fix: linting --- src/utils/kwic.ts | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/src/utils/kwic.ts b/src/utils/kwic.ts index 8e12fc1..0ffb5b4 100644 --- a/src/utils/kwic.ts +++ b/src/utils/kwic.ts @@ -5,72 +5,72 @@ export const getKWICColumns = ( t: (s: string) => string, open: (keyword: KeywordInContext) => void, ): Array> => [ - { - accessorKey: "docid", - header: () => h("div", { class: "text-right" }, t("DocID")), - cell: ({ row }) => { - const docid = row.getValue("docid"); - return h("div", { class: "text-right font-medium" }, docid as string); - }, + { + accessorKey: "docid", + header: () => h("div", { class: "text-right" }, t("DocID")), + cell: ({ row }) => { + const docid = row.getValue("docid"); + return h("div", { class: "text-right font-medium" }, docid as string); }, - { - accessorKey: "source", - header: () => h("div", { class: "text-right" }, t("source")), - cell: ({ row }) => { - const source = row.getValue("source"); - return h("div", { class: "text-right font-medium" }, source as string); - }, + }, + { + accessorKey: "source", + header: () => h("div", { class: "text-right" }, t("source")), + cell: ({ row }) => { + const source = row.getValue("source"); + return h("div", { class: "text-right font-medium" }, source as string); }, - { - accessorKey: "region", - header: () => h("div", { class: "text-right" }, t("region")), - cell: ({ row }) => { - const region = row.getValue("region"); - return h("div", { class: "text-right font-medium" }, region as string); - }, + }, + { + accessorKey: "region", + header: () => h("div", { class: "text-right" }, t("region")), + cell: ({ row }) => { + const region = row.getValue("region"); + return h("div", { class: "text-right font-medium" }, region as string); }, - { - accessorKey: "left", - header: () => h("div", { class: "text-right" }, t("left")), - cell: ({ row }) => { - const left = row.getValue("left"); - return h("div", { class: "text-right font-medium" }, left as string); - }, + }, + { + accessorKey: "left", + header: () => h("div", { class: "text-right" }, t("left")), + cell: ({ row }) => { + const left = row.getValue("left"); + return h("div", { class: "text-right font-medium" }, left as string); }, - { - accessorKey: "word", - header: () => h("div", { class: "text-right" }, t("word")), - cell: ({ row }) => { - const word = row.getValue("word"); - return h("div", { class: "text-right font-medium" }, word as string); - }, + }, + { + accessorKey: "word", + header: () => h("div", { class: "text-right" }, t("word")), + cell: ({ row }) => { + const word = row.getValue("word"); + return h("div", { class: "text-right font-medium" }, word as string); }, - { - accessorKey: "right", - header: () => h("div", { class: "text-left" }, t("right")), - cell: ({ row }) => { - const right = row.getValue("right"); - return h("div", { class: "text-right font-medium" }, right as string); - }, + }, + { + accessorKey: "right", + header: () => h("div", { class: "text-left" }, t("right")), + cell: ({ row }) => { + const right = row.getValue("right"); + return h("div", { class: "text-right font-medium" }, right as string); }, - { - accessorKey: "link", - header: () => h("div", { class: "text-right" }, t("link")), - cell: ({ row }) => { - // const link = row.getValue("link"); - // < size = "" class="me-2" icon = "mdi-open-in-new" @click="open(item)" /> - return h( - VIcon, - { - onClick: () => { - open(row.original); - }, - size: "small", - icon: "mdi-open-in-new", - class: "me-2 cursor-pointer font-medium", + }, + { + accessorKey: "link", + header: () => h("div", { class: "text-right" }, t("link")), + cell: ({ row }) => { + // const link = row.getValue("link"); + // < size = "" class="me-2" icon = "mdi-open-in-new" @click="open(item)" /> + return h( + VIcon, + { + onClick: () => { + open(row.original); }, - // "open", - ); - }, + size: "small", + icon: "mdi-open-in-new", + class: "me-2 cursor-pointer font-medium", + }, + // "open", + ); }, - ]; + }, +];