bumped eslint

This commit is contained in:
Eugene Pankov
2022-12-05 12:16:27 +01:00
parent b0600b10cc
commit 98476df882
40 changed files with 750 additions and 381 deletions

View File

@@ -36,7 +36,7 @@ export class LocalProfileSettingsComponent implements ProfileSettingsComponent<L
// TODO
// defaultPath: shell.fsBase,
properties: ['openDirectory', 'showHiddenFiles'],
}
},
)).filePaths
this.profile.options.cwd = paths[0]
}

View File

@@ -119,7 +119,7 @@ export class TerminalTabComponent extends BaseTerminalTabComponent {
],
defaultId: 0,
cancelId: 1,
}
},
)).response === 0
}

View File

@@ -132,5 +132,5 @@ export default class LocalTerminalModule { // eslint-disable-line @typescript-es
}
export { TerminalTabComponent }
export { TerminalService, ShellProvider }
export { TerminalService }
export * from './api'

View File

@@ -1,4 +1,4 @@
import * as fs from 'mz/fs'
import * as fsSync from 'fs'
import { Injectable } from '@angular/core'
import { Logger, LogService, ConfigService, ProfilesService, PartialProfile } from 'tabby-core'
import { TerminalTabComponent } from '../components/terminalTab.component'
@@ -39,7 +39,7 @@ export class TerminalService {
cwd = cwd ?? fullProfile.options.cwd
if (cwd && !fs.existsSync(cwd)) {
if (cwd && !fsSync.existsSync(cwd)) {
console.warn('Ignoring non-existent CWD:', cwd)
cwd = null
}

View File

@@ -1,5 +1,6 @@
import * as psNode from 'ps-node'
import * as fs from 'mz/fs'
import * as fsSync from 'fs'
import { Injector } from '@angular/core'
import { HostAppService, ConfigService, WIN_BUILD_CONPTY_SUPPORTED, isWindowsBuild, Platform, BootstrapData, BOOTSTRAP_DATA, LogService } from 'tabby-core'
import { BaseSession } from 'tabby-terminal'
@@ -169,7 +170,7 @@ export class Session extends BaseSession {
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
let cwd = options.cwd || process.env.HOME
if (!fs.existsSync(cwd)) {
if (!fsSync.existsSync(cwd)) {
console.warn('Ignoring non-existent CWD:', cwd)
cwd = undefined
}

View File

@@ -74,7 +74,7 @@ export class WSLShellProvider extends ShellProvider {
}
}
if (!lxss || !lxss.DefaultDistribution || !isWindowsBuild(WIN_BUILD_WSL_EXE_DISTRO_FLAG)) {
if (!lxss?.DefaultDistribution || !isWindowsBuild(WIN_BUILD_WSL_EXE_DISTRO_FLAG)) {
if (await fs.exists(bashPath)) {
return [{
id: 'wsl',