Skip to content

Commit

Permalink
chore: enable require-await (#985)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Mar 3, 2024
1 parent 2228982 commit 2a8a6a7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ module.exports = defineConfig({
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/unified-signatures': 'off',
},
Expand Down
2 changes: 1 addition & 1 deletion test/ts/migrations/1-test-migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ColumnDefinitions, MigrationBuilder } from '../../../dist';

export const shorthands: ColumnDefinitions | undefined = undefined;

export async function up(pgm: MigrationBuilder): Promise<void> {
export function up(pgm: MigrationBuilder): void {
pgm.createTable('t1', {
id: 'id',
string: { type: 'text', notNull: true },
Expand Down
2 changes: 1 addition & 1 deletion test/ts/migrations/2-test-migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ColumnDefinitions, MigrationBuilder } from '../../../dist';

export const shorthands: ColumnDefinitions | undefined = undefined;

export async function up(pgm: MigrationBuilder): Promise<void> {
export function up(pgm: MigrationBuilder): void {
pgm.createTable('t3', {
id: 'id',
string: { type: 'text', notNull: true },
Expand Down

0 comments on commit 2a8a6a7

Please sign in to comment.