Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit e8bbade

Browse files
authored
Merge pull request #3173 from withspectrum/flowtype-desktop
Flow and eslint cleanup in desktop dir
2 parents 34ac57e + e454fb1 commit e8bbade

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

desktop/src/autoUpdate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @flow
12
const { app, dialog } = require('electron');
23
const { autoUpdater } = require('electron-updater');
34
const log = require('electron-log');

desktop/src/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @flow
12
const { app } = require('electron');
23
const { resolve } = require('path');
34

desktop/src/main.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
const { app, BrowserWindow, Menu, shell, ipcMain } = require('electron');
1+
// @flow
2+
const { app, BrowserWindow } = require('electron');
23
const isDev = require('electron-is-dev');
3-
const https = require('https');
4-
const path = require('path');
5-
const url = require('url');
64

75
const checkForUpdates = require('./autoUpdate');
86
const buildMenu = require('./menu');
97
const CONFIG = require('./config');
108

119
// Keep a global reference of the window object, if you don't, the window will
1210
// be closed automatically when the JavaScript object is garbage collected.
11+
// eslint-disable-next-line
1312
let win;
1413

1514
const startUrl = isDev ? CONFIG.APP_DEV_URL : CONFIG.APP_REMOTE_URL;

desktop/src/menu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
const { app, dialog, Menu, shell } = require('electron');
1+
// @flow
2+
const { dialog, Menu, shell } = require('electron');
23

34
const CONFIG = require('./config');
45

desktop/src/preload.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @flow
12
/*
23
* Preload script
34
*

0 commit comments

Comments
 (0)