Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
@typescript-eslint/no-misused-promises: set checksVoidReturn to false
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Feb 26, 2020
1 parent 78720f9 commit cb1af10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configs/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,12 @@ module.exports = {
'no-magic-numbers': 'off',
'@typescript-eslint/no-magic-numbers': _basic.rules['no-magic-numbers'],

'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-misused-promises': ['error', {
// NOTE this may hide serious problem if NodeJS will terminate the process on unhandled rejections.
// See https://github.com/typescript-eslint/typescript-eslint/issues/1637
// See https://github.com/nodejs/node/issues/20392
checksVoidReturn: false
}],

'@typescript-eslint/no-var-requires': 'error',

Expand Down

0 comments on commit cb1af10

Please sign in to comment.