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.
This commit is contained in:
parent
4fa60f006b
commit
2351fee957
@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
// Possible errors
|
// Possible errors
|
||||||
"for-direction": "error",
|
"for-direction": "error",
|
||||||
|
"no-async-promise-executor": "error",
|
||||||
"no-cond-assign": ["error", "except-parens"],
|
"no-cond-assign": ["error", "except-parens"],
|
||||||
"no-constant-condition": ["error", { "checkLoops": false, }],
|
"no-constant-condition": ["error", { "checkLoops": false, }],
|
||||||
"no-dupe-args": "error",
|
"no-dupe-args": "error",
|
||||||
|
Loading…
Reference in New Issue
Block a user