Skip to content

promise/prefer-await-to-then Style

What it does

Prefer await to then()/catch()/finally() for reading Promise values

Why is this bad?

Async/await syntax can be seen as more readable.

Example

javascript
myPromise.then(doSomething);

References

Released under the MIT License.