From 8ec94eec33ef87fec4b2a2928b9eb3f909a3db78 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Mon, 20 Mar 2023 12:29:45 +0530 Subject: [PATCH] chore: use strict tsconfig settings --- tsconfig.json | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 010c02b..0604247 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,9 +2,7 @@ "compilerOptions": { "target": "ESNext", "module": "NodeNext", - "lib": [ - "ESNext" - ], + "lib": ["ESNext"], "noUnusedLocals": true, "noUnusedParameters": true, "isolatedModules": true, @@ -12,25 +10,21 @@ "declaration": true, "rootDir": "./", "outDir": "./build", + "esModuleInterop": true, "strictNullChecks": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, + "strictPropertyInitialization": true, "noImplicitAny": true, + "strictBindCallApply": true, "strictFunctionTypes": true, "noImplicitThis": true, "skipLibCheck": true, - "types": [ - "@types/node" - ] + "types": ["@types/node"] }, - "include": [ - "./**/*" - ], - "exclude": [ - "./node_modules", - "./build" - ], + "include": ["./**/*"], + "exclude": ["./node_modules", "./build"], "ts-node": { "swc": true } -} \ No newline at end of file +}