From 74208468c4d97e32fc7651361fe6b8e9f3b2bd50 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 25 Jul 2020 20:26:10 +0200 Subject: [PATCH] Fix formatting in main.ts Signed-off-by: David Mehren --- src/main.ts | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/main.ts b/src/main.ts index 600694ddd..8a6359313 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,11 +1,17 @@ -import { ValidationPipe } from '@nestjs/common' -import { NestFactory } from '@nestjs/core' -import { AppModule } from './app.module' +import { ValidationPipe } from '@nestjs/common'; +import { NestFactory } from '@nestjs/core'; +import { AppModule } from './app.module'; -async function bootstrap () { - const app = await NestFactory.create(AppModule) - app.useGlobalPipes(new ValidationPipe({ forbidUnknownValues: true, skipMissingProperties: false, transform: true })) - await app.listen(3000) +async function bootstrap() { + const app = await NestFactory.create(AppModule); + app.useGlobalPipes( + new ValidationPipe({ + forbidUnknownValues: true, + skipMissingProperties: false, + transform: true, + }), + ); + await app.listen(3000); } -bootstrap() +bootstrap();