From 6604a6e4999970eb9a1c7a74647464e9af0f2884 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Thu, 29 Apr 2021 15:01:00 +0200 Subject: [PATCH] Enable TypeScript strict mode This enables strict mode, but sets strictPropertyInitialization to false, as "the class-validator DTO pattern described in the documentation is not compatible with strict property initialization" according to https://github.com/nestjs/typescript-starter/pull/192 Signed-off-by: David Mehren --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index c925859f0..03bcdca01 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ "./types", "./node_modules/@types" ], - "strict": false + "strict": true, + "strictPropertyInitialization": false } }