From 3ee31b965ad592714245047bac4ba9203ab84c38 Mon Sep 17 00:00:00 2001 From: Sam Chung Date: Sun, 29 Sep 2024 12:31:59 +1000 Subject: [PATCH] Allow Promise reject in tests (#1691) --- packages/eslint-config-skuba/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-skuba/index.js b/packages/eslint-config-skuba/index.js index 79704533d..3e41b1cdc 100644 --- a/packages/eslint-config-skuba/index.js +++ b/packages/eslint-config-skuba/index.js @@ -173,6 +173,7 @@ module.exports = [ // Allow edge-case error handling tests, including from skuba's templates '@typescript-eslint/only-throw-error': 'off', + '@typescript-eslint/prefer-promise-reject-errors': 'off', // Allow potential floating promises in tests only for Koa compatibility // https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-misused-promises.md#checksvoidreturn