Skip to content

Commit 3706f39

Browse files
committed
Ignore 'next' in no-callback-in-promise rule, many false positives
1 parent 699f3b7 commit 3706f39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/configs/javascript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default tseslint.config(
6565
'sonarjs/no-duplicate-string': 'warn',
6666
...('todo-tag' in sonarjs.rules && { 'sonarjs/todo-tag': 'warn' }),
6767
'promise/always-return': ['error', { ignoreLastCallback: true }],
68+
'promise/no-callback-in-promise': ['warn', { exceptions: ['next'] }],
6869
},
6970
},
7071
{

0 commit comments

Comments
 (0)