From 0557a83c45b2fe3198f84d47412c90fbb87ddd69 Mon Sep 17 00:00:00 2001 From: Johannes Ewald Date: Wed, 11 Dec 2024 17:38:17 +0100 Subject: [PATCH] fix: Turn off unicorn/no-single-promise-in-promise-methods --- eslint/rules/javascript.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eslint/rules/javascript.js b/eslint/rules/javascript.js index 38e9b01..c455241 100644 --- a/eslint/rules/javascript.js +++ b/eslint/rules/javascript.js @@ -23,6 +23,9 @@ export const javascript = [ "unicorn/no-array-reduce": "off", "unicorn/prefer-global-this": "off", // Too many false positives "unicorn/prefer-ternary": "off", + // It makes sense to use Promise.all() with a single promise when we expect more to be added later. + // In that case we don't want to refactor the code, but just add the new promise. + "unicorn/no-single-promise-in-promise-methods": "off", }, }, {