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();