module.exports = { rules: { /** * 禁止将 async 函数做为 new Promise 的回调函数 * @reason 出现这种情况时,一般不需要使用 new Promise 实现异步了 */ 'no-async-promise-executor': 'error', }, }