diff --git a/.eslintrc.yml b/.eslintrc.yml index 83c8856b..84c3b224 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -29,7 +29,6 @@ rules: '@typescript-eslint/no-magic-numbers': off '@typescript-eslint/member-delimiter-style': off '@typescript-eslint/promise-function-async': off - '@typescript-eslint/no-unnecessary-type-assertion': off '@typescript-eslint/require-array-sort-compare': off '@typescript-eslint/no-floating-promises': off '@typescript-eslint/prefer-readonly': off diff --git a/terminus-serial/src/buttonProvider.ts b/terminus-serial/src/buttonProvider.ts index 1f232654..f6449f8a 100644 --- a/terminus-serial/src/buttonProvider.ts +++ b/terminus-serial/src/buttonProvider.ts @@ -28,7 +28,7 @@ export class ButtonProvider extends ToolbarButtonProvider { weight: 5, title: 'Serial connections', touchBarNSImage: 'NSTouchBarOpenInBrowserTemplate', - click: async () => { + click: () => { this.activate() }, }] diff --git a/terminus-ssh/src/buttonProvider.ts b/terminus-ssh/src/buttonProvider.ts index db460c22..ee186ba6 100644 --- a/terminus-ssh/src/buttonProvider.ts +++ b/terminus-ssh/src/buttonProvider.ts @@ -28,7 +28,7 @@ export class ButtonProvider extends ToolbarButtonProvider { weight: 5, title: 'SSH connections', touchBarNSImage: 'NSTouchBarOpenInBrowserTemplate', - click: async () => { + click: () => { this.activate() }, }] diff --git a/terminus-ssh/src/components/sshSettingsTab.component.ts b/terminus-ssh/src/components/sshSettingsTab.component.ts index 17f955f6..f9798982 100644 --- a/terminus-ssh/src/components/sshSettingsTab.component.ts +++ b/terminus-ssh/src/components/sshSettingsTab.component.ts @@ -134,7 +134,7 @@ export class SSHSettingsTabComponent { name: connection.group!, connections: [], } - this.childGroups.push(group!) + this.childGroups.push(group) } group.connections.push(connection) } diff --git a/terminus-ssh/src/services/ssh.service.ts b/terminus-ssh/src/services/ssh.service.ts index c4ae4c9c..4d55b974 100644 --- a/terminus-ssh/src/services/ssh.service.ts +++ b/terminus-ssh/src/services/ssh.service.ts @@ -98,7 +98,7 @@ export class SSHService { } } - const sshFormatKey = parsedKey!.toString('openssh') + const sshFormatKey = parsedKey.toString('openssh') const temp = await openTemp() fs.close(temp.fd) await fs.writeFile(temp.path, sshFormatKey) @@ -359,7 +359,7 @@ export class SSHService { name: connection.group!, connections: [], } - groups.push(group!) + groups.push(group) } group.connections.push(connection) } diff --git a/terminus-terminal/src/features/pathDrop.ts b/terminus-terminal/src/features/pathDrop.ts index 1b59732b..c3be2009 100644 --- a/terminus-terminal/src/features/pathDrop.ts +++ b/terminus-terminal/src/features/pathDrop.ts @@ -10,7 +10,7 @@ export class PathDropDecorator extends TerminalDecorator { this.subscribeUntilDetached(terminal, terminal.frontend?.dragOver$.subscribe(event => { event.preventDefault() })) - this.subscribeUntilDetached(terminal, terminal.frontend?.drop$.subscribe(event => { + this.subscribeUntilDetached(terminal, terminal.frontend?.drop$.subscribe((event: DragEvent) => { for (const file of event.dataTransfer!.files as any) { this.injectPath(terminal, file.path) } diff --git a/terminus-terminal/src/frontends/xtermFrontend.ts b/terminus-terminal/src/frontends/xtermFrontend.ts index 861d6b45..be314ed1 100644 --- a/terminus-terminal/src/frontends/xtermFrontend.ts +++ b/terminus-terminal/src/frontends/xtermFrontend.ts @@ -298,7 +298,7 @@ export class XTermFrontend extends Frontend { html += this.getLineAsHTML(selection.startRow, selection.startColumn, selection.endColumn) } else { html += this.getLineAsHTML(selection.startRow, selection.startColumn, this.xterm.cols) - for (let y = selection.startRow! + 1; y < selection.endRow; y++) { + for (let y = selection.startRow + 1; y < selection.endRow; y++) { html += this.getLineAsHTML(y, 0, this.xterm.cols) } html += this.getLineAsHTML(selection.endRow, 0, selection.endColumn)