diff --git a/.eslintrc.json b/.eslintrc.json index bfaf7e2b..03e9cd1e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -104,7 +104,6 @@ "@typescript-eslint/ban-types": "off", "no-shadow": "off", "@typescript-eslint/no-shadow": ["error"], - "@typescript-eslint/no-misused-promises": "off", "@typescript-eslint/no-unnecessary-type-assertion": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-call": "off", diff --git a/app/index.ts b/app/index.ts index f9b2e7ad..548457dd 100644 --- a/app/index.ts +++ b/app/index.ts @@ -77,6 +77,7 @@ function installDevExtensions(isDev_: boolean) { return Promise.all(extensions.map((name) => installer.default(installer[name], forceDownload))); } +// eslint-disable-next-line @typescript-eslint/no-misused-promises app.on('ready', () => installDevExtensions(isDev) .then(() => { diff --git a/cli/index.ts b/cli/index.ts index b0158b7c..9d0d2962 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -13,7 +13,7 @@ import got from 'got'; import ora from 'ora'; import * as api from './api'; -let commandPromise: Promise; +let commandPromise: Promise | undefined; const assertPluginName = (pluginName: string) => { if (!pluginName) {