From a8badf6e58b7d2428ae7b6c8ed822eb0c177f05d Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 7 Nov 2022 09:11:29 +0100 Subject: [PATCH] Add strict types --- tsconfig.json | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index be08abe..016d1f4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,17 @@ { - "include": ["*.js"], + "include": ["**/**.js"], + "exclude": ["coverage", "node_modules"], "compilerOptions": { - "target": "ES2020", - "lib": ["ES2020"], - "module": "ES2020", - "moduleResolution": "node", - "allowJs": true, "checkJs": true, "declaration": true, "emitDeclarationOnly": true, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true + "exactOptionalPropertyTypes": true, + "forceConsistentCasingInFileNames": true, + "lib": ["es2020"], + "module": "node16", + "newLine": "lf", + "skipLibCheck": true, + "strict": true, + "target": "es2020" } }