Skip to content

Commit

Permalink
Ignore 'next' in no-callback-in-promise rule, many false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Nov 29, 2024
1 parent 699f3b7 commit 3706f39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/configs/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] }],
},
},
{
Expand Down

0 comments on commit 3706f39

Please sign in to comment.