From 0cad4919a9edeeb6c9237583f684a6dd35e2d8fd Mon Sep 17 00:00:00 2001 From: Lukas Obermann Date: Wed, 31 May 2023 14:38:52 +0200 Subject: [PATCH] build(ts): upgrade typescript config --- tsconfig.json | 11 +++++------ tsconfig.test.json | 4 ++-- tsconfig.webpack.json | 4 +--- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 9369c1da..0bd7a93c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,13 @@ { "compilerOptions": { + "allowImportingTsExtensions": true, "allowJs": true, - "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "importHelpers": true, - "jsx": "react", + "jsx": "react-jsx", "lib": ["esnext", "dom"], - "module": "CommonJS", - "moduleResolution": "node", + "module": "NodeNext", + "noEmit": true, "noEmitHelpers": true, "noFallthroughCasesInSwitch": true, "noImplicitReturns": true, @@ -17,10 +17,9 @@ "removeComments": true, "resolveJsonModule": true, "rootDir": "src/", - "strict": true, "skipLibCheck": true, + "strict": true, "target": "ESNext", - "noEmit": true }, "include": [ "src/**/*", diff --git a/tsconfig.test.json b/tsconfig.test.json index 6ee8a088..2e503efc 100644 --- a/tsconfig.test.json +++ b/tsconfig.test.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "outDir": "test/", - "noEmit": false + "noEmit": false, + "outDir": "test/" } } diff --git a/tsconfig.webpack.json b/tsconfig.webpack.json index cc5774c0..6f9c0651 100644 --- a/tsconfig.webpack.json +++ b/tsconfig.webpack.json @@ -1,6 +1,4 @@ { "extends": "./tsconfig.json", - "compilerOptions": { - "noEmit": false - } + "compilerOptions": {} }