summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-04-23 09:37:42 +0200
committerOskar Nyberg <oskar@mullvad.net>2020-04-23 11:22:11 +0200
commite2827a86242e69ecd50ec557ab9d25b4624762fd (patch)
treedbd4284db71fdde30c6b48038c8c166276f0b5a4 /gui
parenteac8cb3910975c173ffe8c23abe4e9dfc00982a5 (diff)
downloadmullvadvpn-e2827a86242e69ecd50ec557ab9d25b4624762fd.tar.xz
mullvadvpn-e2827a86242e69ecd50ec557ab9d25b4624762fd.zip
Upgrade Typescript to 3.8.3
The eslint rule `no-unused-expression` was changed to it's typescript equivalent which allows function calls with optional chaining, e.g. `animation?.stop()` or `call?.()`.
Diffstat (limited to 'gui')
-rw-r--r--gui/.eslintrc.js2
-rw-r--r--gui/package-lock.json6
-rw-r--r--gui/package.json2
3 files changed, 5 insertions, 5 deletions
diff --git a/gui/.eslintrc.js b/gui/.eslintrc.js
index 4a8eac1f15..c23f14c3ee 100644
--- a/gui/.eslintrc.js
+++ b/gui/.eslintrc.js
@@ -34,8 +34,8 @@ module.exports = {
],
'@typescript-eslint/require-await': 'error',
'@typescript-eslint/no-floating-promises': 'error',
+ '@typescript-eslint/no-unused-expressions': 'error',
'no-return-await': 'error',
- 'no-unused-expressions': 'error',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
diff --git a/gui/package-lock.json b/gui/package-lock.json
index c0b8207d11..4d96a3b684 100644
--- a/gui/package-lock.json
+++ b/gui/package-lock.json
@@ -10475,9 +10475,9 @@
"dev": true
},
"typescript": {
- "version": "3.5.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.3.tgz",
- "integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==",
+ "version": "3.8.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz",
+ "integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==",
"dev": true
},
"ua-parser-js": {
diff --git a/gui/package.json b/gui/package.json
index de8e32bcd0..f40942e42b 100644
--- a/gui/package.json
+++ b/gui/package.json
@@ -85,7 +85,7 @@
"sinon": "^7.1.1",
"ts-node": "^8.3.0",
"tsc-watch": "^2.4.0",
- "typescript": "^3.5.3"
+ "typescript": "^3.8.3"
},
"scripts": {
"postinstall": "cross-env ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true electron-builder install-app-deps",