From 2351fee957f99cbc1cf37630284af653f7588a81 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 10 Sep 2019 19:32:45 +0200 Subject: [PATCH] Enable the `no-async-promise-executor` ESLint rule This rule is in the process of being rolled out in mozilla-central, and it helps avoid unnecessary `async` functions together with `new Promise(...)`. Please see https://eslint.org/docs/rules/no-async-promise-executor for additional information. --- .eslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc b/.eslintrc index 56161a346..10247eda9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -35,6 +35,7 @@ // Possible errors "for-direction": "error", + "no-async-promise-executor": "error", "no-cond-assign": ["error", "except-parens"], "no-constant-condition": ["error", { "checkLoops": false, }], "no-dupe-args": "error",