From c1f0dd3c78d9ec30504b98204ef2e68a2366a130 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sat, 14 Aug 2021 23:03:03 +0530 Subject: chore: Setting some config rules for typescript --- tsconfig.settings.json | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'tsconfig.settings.json') diff --git a/tsconfig.settings.json b/tsconfig.settings.json index eb2207533..fdf47e653 100644 --- a/tsconfig.settings.json +++ b/tsconfig.settings.json @@ -1,20 +1,29 @@ { + "extends": "@tsconfig/node14/tsconfig.json", "compilerOptions": { "baseUrl": ".", "target": "esnext", - "module": "commonjs", "lib": ["es2015", "es2017", "dom"], "jsx": "react", + "typeRoots": ["node_modules/@types"], "sourceMap": true, - "strict": true, - "noImplicitAny": false, + "noImplicitAny": false, // TODO: Need to switch "allowSyntheticDefaultImports": true, "experimentalDecorators": true, "composite": true, "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, "importHelpers": true, "removeComments": true, - "typeRoots": ["node_modules/@types"] + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noUnusedLocals": true, + "noUnusedParameters": true, // TODO: Need to switch + "noImplicitReturns": true, + "noImplicitThis": true, + "preserveConstEnums": true, + // "exclude": [ + // "node_modules", + // "**/*.spec.ts" + // ] } } -- cgit v1.2.3-70-g09d2