From 23150031f8882d8f635e660ce6f333437cd49e76 Mon Sep 17 00:00:00 2001 From: Sorin Sandru Date: Wed, 5 May 2021 12:19:48 +0200 Subject: [PATCH 1/3] Changed tsconfig rule set for stricter typings --- tsconfig.json | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 60c649e1e58..5ca7a2ddff3 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,12 +17,7 @@ "declaration": true, "downlevelIteration": true, - "suppressImplicitAnyIndexErrors": true, - "noImplicitAny": true, - "alwaysStrict": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "skipLibCheck": true, + "strict": true, "paths": { "@graphql-tools/*-loader": ["packages/loaders/*/src/index.ts"], From f968bfb268ffac0563957cd9d8c94334dcea8fe9 Mon Sep 17 00:00:00 2001 From: Sorin Sandru Date: Wed, 5 May 2021 12:49:45 +0200 Subject: [PATCH 2/3] Jest is now type checking code --- jest.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jest.config.js b/jest.config.js index 71879e8f573..99ff3be5852 100644 --- a/jest.config.js +++ b/jest.config.js @@ -15,4 +15,5 @@ module.exports = { moduleNameMapper: pathsToModuleNameMapper(tsconfig.compilerOptions.paths, { prefix: `${ROOT_DIR}/` }), collectCoverage: false, cacheDirectory: resolve(ROOT_DIR, `${CI ? '' : 'node_modules/'}.cache/jest`), + preset: 'ts-jest', }; From 65cb40a1da2b3a743691b3e4c6daf5e0e81868fb Mon Sep 17 00:00:00 2001 From: Sorin Sandru Date: Wed, 5 May 2021 14:26:26 +0200 Subject: [PATCH 3/3] Readded skipLibCheck option --- tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tsconfig.json b/tsconfig.json index 5ca7a2ddff3..23de5dbf0a5 100755 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,6 +18,7 @@ "downlevelIteration": true, "strict": true, + "skipLibCheck": true, "paths": { "@graphql-tools/*-loader": ["packages/loaders/*/src/index.ts"],