mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 21:28:40 -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",
|
"@typescript-eslint/ban-types": "off",
|
||||||
"no-shadow": "off",
|
"no-shadow": "off",
|
||||||
"@typescript-eslint/no-shadow": ["error"],
|
"@typescript-eslint/no-shadow": ["error"],
|
||||||
"@typescript-eslint/no-misused-promises": "off",
|
|
||||||
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
||||||
"@typescript-eslint/no-unsafe-assignment": "off",
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
||||||
"@typescript-eslint/no-unsafe-call": "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)));
|
return Promise.all(extensions.map((name) => installer.default(installer[name], forceDownload)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||||
app.on('ready', () =>
|
app.on('ready', () =>
|
||||||
installDevExtensions(isDev)
|
installDevExtensions(isDev)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import got from 'got';
|
||||||
import ora from 'ora';
|
import ora from 'ora';
|
||||||
import * as api from './api';
|
import * as api from './api';
|
||||||
|
|
||||||
let commandPromise: Promise<void>;
|
let commandPromise: Promise<void> | undefined;
|
||||||
|
|
||||||
const assertPluginName = (pluginName: string) => {
|
const assertPluginName = (pluginName: string) => {
|
||||||
if (!pluginName) {
|
if (!pluginName) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue