dependencies: Update typescript and typescript-eslint.

The changes are mostly done via `xo --fix`; the other changes are
either trivial or disabling new linter rules that we plan to address
in future commits.
This commit is contained in:
Tim Abbott
2020-02-29 23:39:55 -08:00
parent 39ea18228c
commit eb2988a5e4
24 changed files with 276 additions and 158 deletions

View File

@@ -6,7 +6,7 @@ import ConfigUtil = require('./config-util');
const { shell } = remote;
class AuthUtil {
openInBrowser = (link: string) => {
openInBrowser = (link: string): void => {
const otp = cryptoRandomString({length: 64});
ConfigUtil.setConfigItem('desktopOtp', otp);
shell.openExternal(`${link}?desktop_flow_otp=${otp}`);
@@ -24,7 +24,7 @@ class AuthUtil {
}
};
hexToAscii = (hex: string) => {
hexToAscii = (hex: string): string => {
let ascii = '';
for (let i = 0; i < hex.length; i += 2) {
ascii += String.fromCharCode(parseInt(hex.slice(i, i + 2), 16));