Fix various linting warnings

This commit is contained in:
zkldi
2022-03-28 17:55:07 +01:00
parent 968ff857cd
commit 3be9baa39b
3 changed files with 7 additions and 5 deletions
+5 -1
View File
@@ -1,7 +1,7 @@
/* eslint-disable no-await-in-loop */
// This script syncs this tachi instances database up with the tachi-database-seeds.
import db, { monkDB } from "external/mongo/db";
import { monkDB } from "external/mongo/db";
import fjsh from "fast-json-stable-hash";
import { PullDatabaseSeeds } from "lib/database-seeds/repo";
import CreateLogCtx, { KtLogger } from "lib/logger/logger";
@@ -24,7 +24,11 @@ import { InitaliseFolderChartLookup } from "utils/folder";
interface SyncInstructions {
pattern: RegExp;
handler: (
// These 'any's are necessary due to what I think might be a bug in typescript?
// see: https://github.com/microsoft/TypeScript/issues/48461
// eslint-disable-next-line @typescript-eslint/no-explicit-any
c: any[],
// eslint-disable-next-line @typescript-eslint/no-explicit-any
collection: ICollection<any>,
logger: KtLogger,
collectionName: string