Add awaitAll
This commit is contained in:
parent
ef4444afc2
commit
d8058d396c
8 changed files with 100 additions and 17 deletions
|
|
@ -42,7 +42,12 @@ export default [
|
|||
{
|
||||
object: "Promise",
|
||||
property: "all",
|
||||
message: "Use Promise.allSettled instead of Promise.all to always await all promises."
|
||||
message: "Use `awaitAll` instead of Promise.all to always await all promises."
|
||||
},
|
||||
{
|
||||
object: "Promise",
|
||||
property: "allSettled",
|
||||
message: "Use `awaitAll` instead of Promise.allSettled to always await all promises and throw on errors."
|
||||
},
|
||||
{
|
||||
object: "String",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue