mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
chore: fix lint errors; tweak lint rules
This commit is contained in:
parent
9b3d6f5d68
commit
5f194bf1ef
115 changed files with 176 additions and 264 deletions
|
@ -106,7 +106,7 @@ export class CreatePreTypeORMTables1540519249973 implements MigrationInterface {
|
|||
`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<any> {
|
||||
public async down(): Promise<any> {
|
||||
// No down function since we're migrating (hehe) from another migration system (knex)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -77,6 +77,6 @@ export class MigrateUsernamesToNewHistoryTable1556909512501 implements Migration
|
|||
await queryRunner.query("START TRANSACTION");
|
||||
}
|
||||
|
||||
// tslint:disable-next-line:no-empty
|
||||
public async down(queryRunner: QueryRunner): Promise<any> {}
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
||||
public async down(): Promise<any> {}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ export class AddTypeAndPermissionsToApiPermissions1573158035867 implements Migra
|
|||
public async up(queryRunner: QueryRunner): Promise<any> {
|
||||
try {
|
||||
await queryRunner.dropPrimaryKey("api_permissions");
|
||||
} catch {} // tslint:disable-line
|
||||
} catch {} // eslint-disable-line no-empty
|
||||
|
||||
const table = (await queryRunner.getTable("api_permissions"))!;
|
||||
if (table.indices.length) {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { MigrationInterface, QueryRunner, Table, TableIndex } from "typeorm";
|
|||
|
||||
export class CreateTempBansTable1608753440716 implements MigrationInterface {
|
||||
public async up(queryRunner: QueryRunner): Promise<any> {
|
||||
const table = await queryRunner.createTable(
|
||||
await queryRunner.createTable(
|
||||
new Table({
|
||||
name: "tempbans",
|
||||
columns: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue