From 45ecca01204f78c6ff087295492bbdf9c5f39c65 Mon Sep 17 00:00:00 2001 From: AdingApkgg Date: Sun, 28 Dec 2025 08:09:05 +0800 Subject: [PATCH] Remove misused promises rule from ESLint configuration for cleaner TypeScript checks --- eslint.config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index 51778b4..33cb79f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -99,7 +99,6 @@ export default tseslint.config( ], '@typescript-eslint/no-non-null-assertion': 'warn', // 非空断言警告 '@typescript-eslint/no-floating-promises': 'warn', // Promise 未处理警告 - '@typescript-eslint/no-misused-promises': 'error', // Promise 误用检查 '@typescript-eslint/await-thenable': 'error', // await 必须用于 Promise '@typescript-eslint/require-await': 'off', // 允许空 async 函数 '@typescript-eslint/restrict-template-expressions': 'off', // 允许模板字符串中使用任意类型