'Ordering member for async and method in Typescript-ESLint

Is there a way for ordering async / sync method member ?

example

# ❌ Incorrect
function myFunction() {
  // something code
}

async function myAsyncFunction() {
  // something code
}

# ✅ correct
async function myFunction() {
  // something code
}

function myAsyncFunction() {
  // something code
}

Why ?

I think using async function can be indicated that communicates, affects to other component with return values OR sends as integration activities.

so we can expect async would be have bindings to data flows more than sync.

Thus async function is more important than syncs.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source