2.2.0 • Published 3 years ago

eslint-plugin-mishguru v2.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

eslint-plugin-mishguru

Rules

no-return-call-within-async-try

const fetch = async () => {
  try {
    return doSomethingAsync() // <-- this should be awaited
  } catch (error) {
    console.log(error) // <-- this doesn't run if doSomethingAsync fails
  }
}