From b38b12d48a14b1dd6b10342a75da7eb5191b88c0 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 19 Nov 2024 11:36:58 +0100 Subject: [PATCH] Enable the `unicorn/no-single-promise-in-promise-methods` ESLint plugin rule Please see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-single-promise-in-promise-methods.md --- eslint.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/eslint.config.mjs b/eslint.config.mjs index a9e4f4687e88b..caf6c01a4f230 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -115,6 +115,7 @@ export default [ "unicorn/no-instanceof-array": "error", "unicorn/no-invalid-remove-event-listener": "error", "unicorn/no-new-buffer": "error", + "unicorn/no-single-promise-in-promise-methods": "error", "unicorn/no-typeof-undefined": ["error", { checkGlobalVariables: false }], "unicorn/no-useless-promise-resolve-reject": "error", "unicorn/no-useless-spread": "error",