From cb1af10cf164d66887d80665f49a3d06ab9cb81c Mon Sep 17 00:00:00 2001 From: Andrei Neculau Date: Wed, 26 Feb 2020 22:56:27 +0100 Subject: [PATCH] @typescript-eslint/no-misused-promises: set checksVoidReturn to false --- configs/typescript.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configs/typescript.js b/configs/typescript.js index 7cef504..cab6555 100644 --- a/configs/typescript.js +++ b/configs/typescript.js @@ -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',