Akryum / Akryum/vue-cli-plugin-ssr

ESLint reccomended `no-async-promise-executor` broken in example

未关闭
#178 1 条评论 10 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
441
派生
69
PR 合并指标
30 天内没有已合并 PR

描述

The rule `no-async-promise-executor` seems to be set in the recommended group in new versions of ESLint. This trips the following code in the example:

`entry-server.js`
```
return new Promise(async (resolve, reject) => {
const { app, router, apolloProvider } = await createApp({
ssr: true
});
```

I just disabled the rule in my project but I don't fully understand the implications of doing so, so if someone knows a way to fix this in the example I think that'd be great given that this is now a recommended rule.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。