From 53e49a2e9e0bd22a47f44f6ee40793e22c90eeed Mon Sep 17 00:00:00 2001 From: Rain <958414905@qq.com> Date: Thu, 28 Sep 2023 17:51:45 +0800 Subject: [PATCH] chore: optimize eslint --- .eslintrc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index 7eadc3743..4e5100309 100755 --- a/.eslintrc +++ b/.eslintrc @@ -55,7 +55,16 @@ "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-var-requires": "off", - "promise/always-return": "off", - "@typescript-eslint/no-floating-promises": "error" - } + "promise/always-return": "off" + }, + "overrides": [ + { + "files": [ + "**/e2e/**/*.{ts,js,tsx,jsx}" + ], + "rules": { + "@typescript-eslint/no-floating-promises": "error" + } + } + ] }