From 3861d4beb41c7561a3c85a09d70118e5119e19c5 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 } }