From e98c12d40954dc654786d6397f13bfbbfcccc6d5 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 24 Dec 2020 18:59:33 +0100 Subject: [PATCH] lint typescript-eslint/prefer-enum-initializers --- .eslintrc.yml | 1 - terminus-core/src/services/hostApp.service.ts | 4 +++- .../src/components/pluginsSettingsTab.component.ts | 2 +- terminus-ssh/src/api.ts | 4 +++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 736b76a4..c1a04346 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -114,7 +114,6 @@ rules: '@typescript-eslint/non-nullable-type-assertion-style': off '@typescript-eslint/dot-notation': off '@typescript-eslint/no-confusing-void-expression': off - '@typescript-eslint/prefer-enum-initializers': off '@typescript-eslint/no-implicit-any-catch': off '@typescript-eslint/member-ordering': off '@typescript-eslint/no-var-requires': off diff --git a/terminus-core/src/services/hostApp.service.ts b/terminus-core/src/services/hostApp.service.ts index 325efe1e..1c294a02 100644 --- a/terminus-core/src/services/hostApp.service.ts +++ b/terminus-core/src/services/hostApp.service.ts @@ -8,7 +8,9 @@ import { Logger, LogService } from './log.service' import { isWindowsBuild, WIN_BUILD_FLUENT_BG_MOVE_BUG_FIXED, WIN_BUILD_FLUENT_BG_SUPPORTED } from '../utils' export enum Platform { - Linux, macOS, Windows, + Linux = 'Linux', + macOS = 'macOS', + Windows = 'Windows', } export interface Bounds { diff --git a/terminus-plugin-manager/src/components/pluginsSettingsTab.component.ts b/terminus-plugin-manager/src/components/pluginsSettingsTab.component.ts index 86030789..f9dafee8 100644 --- a/terminus-plugin-manager/src/components/pluginsSettingsTab.component.ts +++ b/terminus-plugin-manager/src/components/pluginsSettingsTab.component.ts @@ -7,7 +7,7 @@ import { Component, Input } from '@angular/core' import { ConfigService, ElectronService } from 'terminus-core' import { PluginInfo, PluginManagerService } from '../services/pluginManager.service' -enum BusyState { Installing, Uninstalling } +enum BusyState { Installing = 'Installing', Uninstalling = 'Uninstalling' } /** @hidden */ @Component({ diff --git a/terminus-ssh/src/api.ts b/terminus-ssh/src/api.ts index 157ff42b..6a9fad3b 100644 --- a/terminus-ssh/src/api.ts +++ b/terminus-ssh/src/api.ts @@ -45,7 +45,9 @@ export interface SSHConnection { } export enum PortForwardType { - Local, Remote, Dynamic, + Local = 'Local', + Remote = 'Remote', + Dynamic = 'Dynamic', } export class ForwardedPort {