From bd7e10b02680365483e00952f89b6de0052eb3f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Thu, 12 Sep 2024 14:49:03 +0300 Subject: [PATCH 1/2] Stricter tsconfig --- tsconfig.json | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 52bfbd228..9d184b4d0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,16 +1,22 @@ { "compilerOptions": { - "target": "es6", - "module": "commonjs", "esModuleInterop": true, - "skipLibCheck": true, - "outDir": "lib", "forceConsistentCasingInFileNames": true, + "module": "commonjs", + "outDir": "lib", + "resolveJsonModule": true, + "skipLibCheck": true, + "target": "es6", + + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "exactOptionalPropertyTypes": true, "noFallthroughCasesInSwitch": true, + "noImplicitOverride": true, "noImplicitReturns": true, + "noPropertyAccessFromIndexSignature": true, "noUnusedLocals": true, "noUnusedParameters": true, - "resolveJsonModule": true, "strict": true } } From ebdcdf2410ba799e3c114bdcca7827c5b1179d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Thu, 12 Sep 2024 14:50:58 +0300 Subject: [PATCH 2/2] Disabled skipLibCheck --- eslint.config.js | 1 + tsconfig.json | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index e5f7891a1..50bf803bf 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -207,6 +207,7 @@ export default tseslint.config( files: ["**/*.js"], rules: { "@typescript-eslint/no-unsafe-argument": "off", + "@typescript-eslint/no-unsafe-assignment": "off", }, }, ); diff --git a/tsconfig.json b/tsconfig.json index 9d184b4d0..6a2ed3bc2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,6 @@ "module": "commonjs", "outDir": "lib", "resolveJsonModule": true, - "skipLibCheck": true, "target": "es6", "allowUnreachableCode": false,