Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 327 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 327 Bytes

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
  }
}