Fix lint warnings

This commit is contained in:
Jonas Lochmann
2024-07-29 02:00:00 +02:00
parent b69271f7df
commit 9c2048af64
4 changed files with 609 additions and 469 deletions
+4 -1
View File
@@ -25,7 +25,10 @@ export const createUmzug = (sequelize: Sequelize) => (
migrations: {
glob: resolve(__dirname, '../../../build/database/migration/migrations/*.js'),
resolve: ({ name, path }) => {
const migration = require(path!!)
if (!path) throw new Error()
// eslint-disable-next-line @typescript-eslint/no-var-requires
const migration = require(path)
return {
name,