enabled no-floating-promises eslint rules to prevent #3 from happening again

pull/4/head
Inga 🏳‍🌈 11 months ago
parent 2d9c8e3069
commit 8deb17f87b
  1. 1
      .eslintrc.js
  2. 2
      src/main.ts

@ -16,6 +16,7 @@ module.exports = {
}, },
ignorePatterns: ['.eslintrc.js'], ignorePatterns: ['.eslintrc.js'],
rules: { rules: {
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off',

@ -6,4 +6,4 @@ async function bootstrap() {
const app = await NestFactory.create<NestExpressApplication>(AppModule); const app = await NestFactory.create<NestExpressApplication>(AppModule);
await app.listen(3000); await app.listen(3000);
} }
bootstrap(); void bootstrap();

Loading…
Cancel
Save