From df88ab18ff101df881f4c01ddaa00d4571c2e946 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Fri, 19 Jun 2020 20:54:45 +0100 Subject: [PATCH] Re-enable `no-misused-promises` --- .eslintrc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 3a4d27f5..c7518b82 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -110,7 +110,11 @@ module.exports = { "@typescript-eslint/no-implied-eval": "error", "@typescript-eslint/no-inferrable-types": "off", //"error", "@typescript-eslint/no-misused-new": "error", - "@typescript-eslint/no-misused-promises": "off", //"error", + "@typescript-eslint/no-misused-promises": ["error", + { + "checksVoidReturn": false, + }, + ], "@typescript-eslint/no-namespace": "error", "@typescript-eslint/no-non-null-asserted-optional-chain": "error", "@typescript-eslint/no-non-null-assertion": "warn",