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 <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-04-29 15:01:00 +02:00
parent b2f0bfa0bf
commit 6604a6e499
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -14,6 +14,7 @@
"./types", "./types",
"./node_modules/@types" "./node_modules/@types"
], ],
"strict": false "strict": true,
"strictPropertyInitialization": false
} }
} }