bumped eslint

This commit is contained in:
Eugene
2023-08-25 23:40:36 +02:00
parent 4684b0d6f5
commit 1b0ce6d684
21 changed files with 536 additions and 327 deletions

View File

@@ -18,6 +18,7 @@ export class SFTPCreateDirectoryModalComponent extends BaseComponent {
create (): void {
this.modalInstance.close(this.directoryName)
}
cancel (): void {
this.modalInstance.close('')
}

View File

@@ -1,5 +1,4 @@
import * as C from 'constants'
// eslint-disable-next-line @typescript-eslint/no-duplicate-imports, no-duplicate-imports
import { Subject, Observable } from 'rxjs'
import { posix as posixPath } from 'path'
import { Injector, NgZone } from '@angular/core'

View File

@@ -1,6 +1,5 @@
import * as fs from 'mz/fs'
import * as crypto from 'crypto'
// eslint-disable-next-line @typescript-eslint/no-duplicate-imports, no-duplicate-imports
import * as sshpk from 'sshpk'
import colors from 'ansi-colors'
import stripAnsi from 'strip-ansi'

View File

@@ -7,7 +7,7 @@ export class X11Socket {
static resolveDisplaySpec (spec?: string|null): SocketConnectOpts {
// eslint-disable-next-line prefer-const, @typescript-eslint/no-unused-vars
let [_, xHost, xDisplay] = /^(.+):(\d+)(?:.(\d+))$/.exec(spec ?? process.env.DISPLAY ?? 'localhost:0') ?? []
let [_, xHost, xDisplay] = /^(.+):(\d+)(?:.(\d+))$/.exec(spec ?? process.env.DISPLAY ?? 'localhost:0') ?? [undefined, undefined, undefined]
if (process.platform === 'win32') {
xHost ??= 'localhost'
} else {
@@ -18,7 +18,7 @@ export class X11Socket {
xHost = spec
}
const display = parseInt(xDisplay || '0')
const display = parseInt(xDisplay ?? '0')
const port = display < 100 ? display + 6000 : display
if (xHost === 'unix') {

View File

@@ -53,6 +53,6 @@ export class CommonSFTPContextMenu extends SFTPContextMenuItemProvider {
const modal = this.ngbModal.open(SFTPDeleteModalComponent)
modal.componentInstance.item = item
modal.componentInstance.sftp = session
await modal.result.catch(() => {return})
await modal.result.catch(() => null)
}
}