lint typescript-eslint/prefer-enum-initializers

This commit is contained in:
Eugene Pankov 2020-12-24 18:59:33 +01:00
parent aacc603309
commit e98c12d409
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
4 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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 {

View file

@ -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({

View file

@ -45,7 +45,9 @@ export interface SSHConnection {
}
export enum PortForwardType {
Local, Remote, Dynamic,
Local = 'Local',
Remote = 'Remote',
Dynamic = 'Dynamic',
}
export class ForwardedPort {