diff --git a/.eslintrc.js b/.eslintrc.js index f6c62be..96eeef8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,6 +16,7 @@ module.exports = { }, ignorePatterns: ['.eslintrc.js'], rules: { + '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', diff --git a/src/main.ts b/src/main.ts index a0b44e3..0a7a6f1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,4 +6,4 @@ async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); } -bootstrap(); +void bootstrap();