You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Agreed, this would be a good rule. TypeScript can suggest this itself with microsoft/TypeScript#25082. Should TSLint use the TypeScript diagnostics for inference and suggestions? Is such a thing reasonably possible (#4100 / #4215)?
Note: per #4534, this issue will be closed in less than a month if no PR is sent to add the rule. If you really need the rule, custom rules are always an option and can be maintained outside this repo!
Rule Suggestion
Warn or error the case when Promise.then() syntax is used instead of await.
instead of
promise.then(() => {do smth})
await prmise();
{do smth}
The text was updated successfully, but these errors were encountered: