From beb414c44b5f5d99528522d1b7660dd55c5d4b84 Mon Sep 17 00:00:00 2001 From: Bart Mesuere Date: Mon, 8 Jul 2024 11:00:57 +0200 Subject: [PATCH] fix lint --- lib/formatters/formatter.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/formatters/formatter.ts b/lib/formatters/formatter.ts index 4f1ffcca..39d4202d 100644 --- a/lib/formatters/formatter.ts +++ b/lib/formatters/formatter.ts @@ -1,19 +1,18 @@ -import { CSVFormatter } from "./csv_formatter.js"; - export abstract class Formatter { abstract header(sampleData: object, fastaMapper?: boolean): string; abstract footer(): string; - abstract convert(data: any, first?: boolean): string; + abstract convert(data: { [key: string]: string }[], first?: boolean): string; - format(data, fastaMapper?: boolean, first?: boolean): string { + format(data: { [key: string]: string }[], fastaMapper?: boolean, first?: boolean): string { if (fastaMapper) { data = this.integrateFastaHeaders(data, fastaMapper); } return this.convert(data, first); } - integrateFastaHeaders(data: any, fastaMapper: boolean): any { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + integrateFastaHeaders(data: { [key: string]: string }[], fastaMapper: boolean): { [key: string]: string }[] { return data; } }