mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Fix @typescript-eslint/no-misused-promises errors
This commit is contained in:
parent
76912a3d27
commit
fe2653c5c0
3 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import got from 'got';
|
|||
import ora from 'ora';
|
||||
import * as api from './api';
|
||||
|
||||
let commandPromise: Promise<void>;
|
||||
let commandPromise: Promise<void> | undefined;
|
||||
|
||||
const assertPluginName = (pluginName: string) => {
|
||||
if (!pluginName) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue