Skip to content

Commit

Permalink
reenabled @typescript-eslint/no-unnecessary-type-assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jan 2, 2021
1 parent 154cc29 commit e36bad2
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion terminus-serial/src/buttonProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ButtonProvider extends ToolbarButtonProvider {
weight: 5,
title: 'Serial connections',
touchBarNSImage: 'NSTouchBarOpenInBrowserTemplate',
click: async () => {
click: () => {
this.activate()
},
}]
Expand Down
2 changes: 1 addition & 1 deletion terminus-ssh/src/buttonProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ButtonProvider extends ToolbarButtonProvider {
weight: 5,
title: 'SSH connections',
touchBarNSImage: 'NSTouchBarOpenInBrowserTemplate',
click: async () => {
click: () => {
this.activate()
},
}]
Expand Down
2 changes: 1 addition & 1 deletion terminus-ssh/src/components/sshSettingsTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class SSHSettingsTabComponent {
name: connection.group!,
connections: [],
}
this.childGroups.push(group!)
this.childGroups.push(group)
}
group.connections.push(connection)
}
Expand Down
4 changes: 2 additions & 2 deletions terminus-ssh/src/services/ssh.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -359,7 +359,7 @@ export class SSHService {
name: connection.group!,
connections: [],
}
groups.push(group!)
groups.push(group)
}
group.connections.push(connection)
}
Expand Down
2 changes: 1 addition & 1 deletion terminus-terminal/src/features/pathDrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion terminus-terminal/src/frontends/xtermFrontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e36bad2

Please sign in to comment.