Skip to content

Commit

Permalink
chore(eslint): enable @typescript-eslint/no-misused-promises rule (#…
Browse files Browse the repository at this point in the history
…2782)

Enabled the rule. This warned about two issues, there are separate PRs
about those:
- #2783
- #2784
  • Loading branch information
teogeb authored Oct 4, 2024
1 parent 717ad31 commit d65ca26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ module.exports = {
allowNever: true,
allow: [{ from: 'lib', name: ['Error'] }]
}],
'@typescript-eslint/no-misused-promises': ['error', {
'checksVoidReturn': false
}],
// TODO: in follow up PRs, select which rules we should enable and fix the code. When all recommended rules
// have been enabled, consider enabling the "strict" preset.
'@typescript-eslint/require-await': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
Expand Down

0 comments on commit d65ca26

Please sign in to comment.