Is there an eslint rule to catch an await
used in a function that is not async
. Perhaps I'm just not searching the correct keywords. Would love to have a rule such that the following code causes a linting error:
function doSomething() {
await doAsync()
}
EDIT: May be an issue with vim + ALE config? Any ideas there?
Thanks!