Migrate to eslint

This commit is contained in:
Chris Svenningsen 2020-09-16 12:31:05 -07:00 committed by Josh Perez
parent 0fe7e30398
commit b4e9c278d3
27 changed files with 104 additions and 71 deletions

View file

@ -38,7 +38,7 @@ export async function start(
getMainWindow: () => BrowserWindow,
locale: LocaleType,
logger: LoggerType
) {
): Promise<void> {
logger.info('windows/start: starting checks...');
loggerForQuitHandler = logger;
@ -163,7 +163,7 @@ async function install(filePath: string, logger: LoggerType): Promise<void> {
const args = ['--updated'];
const options = {
detached: true,
stdio: 'ignore' as 'ignore', // TypeScript considers this a plain string without help
stdio: 'ignore' as const, // TypeScript considers this a plain string without help
};
try {
@ -209,7 +209,6 @@ async function spawn(
emitter.on('error', reject);
emitter.unref();
// tslint:disable-next-line no-string-based-set-timeout
setTimeout(resolve, 200);
});
}