diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-02-18 12:56:18 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-02-19 11:42:52 +0100 |
| commit | 5fe4e1f58734831a12a2c8a13083c5f922b09519 (patch) | |
| tree | c9f27597c0c442d08ad808f9d0a9114c9b4cf5f3 /gui/src | |
| parent | 24cc696a68bd60ce0b33f218369313ef522fff4b (diff) | |
| download | mullvadvpn-5fe4e1f58734831a12a2c8a13083c5f922b09519.tar.xz mullvadvpn-5fe4e1f58734831a12a2c8a13083c5f922b09519.zip | |
Install and configure eslint
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/account-data-cache.ts | 1 | ||||
| -rw-r--r-- | gui/src/main/index.ts | 1 | ||||
| -rw-r--r-- | gui/src/renderer/.eslintrc.js | 5 |
3 files changed, 5 insertions, 2 deletions
diff --git a/gui/src/main/account-data-cache.ts b/gui/src/main/account-data-cache.ts index 24f9c0453a..7ef103fe92 100644 --- a/gui/src/main/account-data-cache.ts +++ b/gui/src/main/account-data-cache.ts @@ -101,7 +101,6 @@ export default class AccountDataCache { private scheduleRetry(accountToken: AccountToken) { this.fetchAttempt += 1; - // tslint:disable-next-line const delay = Math.min(2048, 1 << (this.fetchAttempt + 2)) * 1000; log.warn(`Failed to fetch account data. Retrying in ${delay} ms`); diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 32620c3574..cdca8322d7 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -1403,7 +1403,6 @@ class ApplicationMain { private installMacOsMenubarAppWindowHandlers(tray: Tray, windowController: WindowController) { const { NSEventMonitor, NSEventMask } = require('nseventmonitor'); const macEventMonitor = new NSEventMonitor(); - // tslint:disable-next-line const eventMask = NSEventMask.leftMouseDown | NSEventMask.rightMouseDown; const window = windowController.window; diff --git a/gui/src/renderer/.eslintrc.js b/gui/src/renderer/.eslintrc.js new file mode 100644 index 0000000000..c38aa97590 --- /dev/null +++ b/gui/src/renderer/.eslintrc.js @@ -0,0 +1,5 @@ +module.exports = { + env: { + browser: true, + }, +}; |
