From 3706f3997631d754e7d45e60a09be390017dc82d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Chalk?= Date: Fri, 29 Nov 2024 19:22:07 +0100 Subject: [PATCH] Ignore 'next' in no-callback-in-promise rule, many false positives --- src/configs/javascript.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/configs/javascript.js b/src/configs/javascript.js index f573637..dacb498 100644 --- a/src/configs/javascript.js +++ b/src/configs/javascript.js @@ -65,6 +65,7 @@ export default tseslint.config( 'sonarjs/no-duplicate-string': 'warn', ...('todo-tag' in sonarjs.rules && { 'sonarjs/todo-tag': 'warn' }), 'promise/always-return': ['error', { ignoreLastCallback: true }], + 'promise/no-callback-in-promise': ['warn', { exceptions: ['next'] }], }, }, {