eslint-community/eslint-plugin-promise

feature: warn when calling async functions without an await (no floating promises)

Aperta

#151 aperta il 7 nov 2018

 (13 commenti) (4 reazioni) (0 assegnatari)JavaScript (103 fork)auto 404
enhancementhelp wanted

Metriche repository

Star
 (998 stelle)
Metriche merge PR
 (Merge medio 1g 2h) (12 PR mergiate in 30 g)

Descrizione

Forgetting to put an await before calling an async function can have very bad outcomes and is quite hard to notice

TSLint has a rule named no-floating-promises -https://palantir.github.io/tslint/rules/no-floating-promises/

Can you implement a similar rule in this ESLint plugin?

Guida contributor