Skip to content

Commit

Permalink
fix: don't check void return for misused promises
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Dec 7, 2023
1 parent 9cf4a2e commit 281c893
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ export function typescript() {
'@typescript-eslint/prefer-function-type': 'warn',

// TODO: We should set the rules below to error in the future
'@typescript-eslint/no-misused-promises': 'warn',
'@typescript-eslint/no-misused-promises': [
'warn',
{ checksVoidReturn: false },
],
'@typescript-eslint/await-thenable': 'warn',
'@typescript-eslint/require-await': 'warn',
'@typescript-eslint/unbound-method': 'warn',
Expand Down

0 comments on commit 281c893

Please sign in to comment.