lint/rules/no-async-promise-executor.md
Requires that async promise executor functions are not used.
Promise constructors take an executor function as an argument with resolve and
reject parameters that can be used to control the state of the created
Promise. This function is allowed to be async but this is generally not a good
idea for several reasons:
Invalid:
new Promise(async function (resolve, reject) {});
new Promise(async (resolve, reject) => {});
Valid:
new Promise(function (resolve, reject) {});
new Promise((resolve, reject) => {});