Open mshustov opened 2 years ago
Pinging @elastic/kibana-core (Team:Core)
Pinging @elastic/kibana-operations (Team:Operations)
Blocked by https://github.com/elastic/kibana-operations/issues/218. We will need to enable this per-package as there are a massive amount of violations at this point.
Kibana server code is transpiled into the environment with native
async/await
support. Although, we don't enforceasync/await
usage for asynchronous code, which comes at the code of losing async error stack trace in the case of an exception:Source
Enforcing a promise to be awaited before a return statement via @typescript-eslint/return-await` linting rule, improves Developer experience by making it easier to find where the exception was thrown.