2 * @fileoverview disallow using an async function as a Promise executor
7 //------------------------------------------------------------------------------
9 //------------------------------------------------------------------------------
16 description: "disallow using an async function as a Promise executor",
17 category: "Possible Errors",
19 url: "https://eslint.org/docs/rules/no-async-promise-executor"
25 async: "Promise executor functions should not be async."
31 "NewExpression[callee.name='Promise'][arguments.0.async=true]"(node) {
33 node: context.getSourceCode().getFirstToken(node.arguments[0], token => token.value === "async"),