diff --git a/.eslintrc.json b/.eslintrc.json index 6264d226..3917335e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -483,7 +483,12 @@ "@typescript-eslint/no-explicit-any": 2, "@typescript-eslint/no-extra-non-null-assertion": 2, "@typescript-eslint/no-extraneous-class": 2, - "@typescript-eslint/no-floating-promises": 2, + "@typescript-eslint/no-floating-promises": [ + 2, + { + "ignoreVoid": true + } + ], "@typescript-eslint/no-for-in-array": 2, "@typescript-eslint/no-import-type-side-effects": 2, "@typescript-eslint/no-inferrable-types": 2, diff --git a/build.mjs b/build.mjs index 53c2098e..b038e316 100644 --- a/build.mjs +++ b/build.mjs @@ -469,7 +469,7 @@ const config = { 'no-explicit-any': ERROR, 'no-extra-non-null-assertion': ERROR, 'no-extraneous-class': ERROR, - 'no-floating-promises': ERROR, + 'no-floating-promises': [ERROR, { ignoreVoid: true }], 'no-for-in-array': ERROR, 'no-import-type-side-effects': ERROR, 'no-inferrable-types': ERROR,