mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue