Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bmesuere committed Jul 8, 2024
1 parent 8f9334a commit beb414c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/formatters/formatter.ts
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit beb414c

Please sign in to comment.