Skip to content

promise/avoid-new Restriction

What it does

Disallow creating new promises outside of utility libs.

Why is this bad?

If you dislike the new promise style promises.

Example

javascript
new Promise((resolve, reject) => {
  /* ... */
});

References

Released under the MIT License.