From 7e7ba662438e46150e25555c619ec744dec9346e Mon Sep 17 00:00:00 2001 From: MastersGame Date: Sun, 8 Nov 2026 12:21:15 +0100 Subject: [PATCH] chore: enable TypeScript strict mode and fail on floating promises Co-Authored-By: Claude Opus 5.5 --- eslint.config.mjs | 2 +- tsconfig.json | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 088587d..fbc79b3 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -28,7 +28,7 @@ export default tseslint.config( { rules: { '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-floating-promises': 'warn', + '@typescript-eslint/no-floating-promises': 'error', '@typescript-eslint/no-unsafe-argument': 'warn', "prettier/prettier": "error", }, diff --git a/tsconfig.json b/tsconfig.json index aba29b0..f5d7532 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,10 +16,8 @@ "baseUrl": "./", "incremental": true, "skipLibCheck": true, - "strictNullChecks": true, + "strict": true, "forceConsistentCasingInFileNames": true, - "noImplicitAny": false, - "strictBindCallApply": false, "noFallthroughCasesInSwitch": false } }