---
source: crates/oxc_linter/src/tester.rs
---
  ⚠ eslint(no-async-promise-executor): Promise executor functions should not be `async`.
   ╭─[no_async_promise_executor.tsx:1:13]
 1 │ new Promise(async function foo(resolve, reject) {})
   ·             ─────
   ╰────

  ⚠ eslint(no-async-promise-executor): Promise executor functions should not be `async`.
   ╭─[no_async_promise_executor.tsx:1:13]
 1 │ new Promise(async (resolve, reject) => {})
   ·             ─────
   ╰────

  ⚠ eslint(no-async-promise-executor): Promise executor functions should not be `async`.
   ╭─[no_async_promise_executor.tsx:1:17]
 1 │ new Promise(((((async () => {})))))
   ·                 ─────
   ╰────
