mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-21 11:59:53 +00:00
reenabled @typescript-eslint/no-unnecessary-type-assertion
This commit is contained in:
parent
154cc29333
commit
e36bad2553
@ -29,7 +29,6 @@ rules:
|
|||||||
'@typescript-eslint/no-magic-numbers': off
|
'@typescript-eslint/no-magic-numbers': off
|
||||||
'@typescript-eslint/member-delimiter-style': off
|
'@typescript-eslint/member-delimiter-style': off
|
||||||
'@typescript-eslint/promise-function-async': off
|
'@typescript-eslint/promise-function-async': off
|
||||||
'@typescript-eslint/no-unnecessary-type-assertion': off
|
|
||||||
'@typescript-eslint/require-array-sort-compare': off
|
'@typescript-eslint/require-array-sort-compare': off
|
||||||
'@typescript-eslint/no-floating-promises': off
|
'@typescript-eslint/no-floating-promises': off
|
||||||
'@typescript-eslint/prefer-readonly': off
|
'@typescript-eslint/prefer-readonly': off
|
||||||
|
@ -28,7 +28,7 @@ export class ButtonProvider extends ToolbarButtonProvider {
|
|||||||
weight: 5,
|
weight: 5,
|
||||||
title: 'Serial connections',
|
title: 'Serial connections',
|
||||||
touchBarNSImage: 'NSTouchBarOpenInBrowserTemplate',
|
touchBarNSImage: 'NSTouchBarOpenInBrowserTemplate',
|
||||||
click: async () => {
|
click: () => {
|
||||||
this.activate()
|
this.activate()
|
||||||
},
|
},
|
||||||
}]
|
}]
|
||||||
|
@ -28,7 +28,7 @@ export class ButtonProvider extends ToolbarButtonProvider {
|
|||||||
weight: 5,
|
weight: 5,
|
||||||
title: 'SSH connections',
|
title: 'SSH connections',
|
||||||
touchBarNSImage: 'NSTouchBarOpenInBrowserTemplate',
|
touchBarNSImage: 'NSTouchBarOpenInBrowserTemplate',
|
||||||
click: async () => {
|
click: () => {
|
||||||
this.activate()
|
this.activate()
|
||||||
},
|
},
|
||||||
}]
|
}]
|
||||||
|
@ -134,7 +134,7 @@ export class SSHSettingsTabComponent {
|
|||||||
name: connection.group!,
|
name: connection.group!,
|
||||||
connections: [],
|
connections: [],
|
||||||
}
|
}
|
||||||
this.childGroups.push(group!)
|
this.childGroups.push(group)
|
||||||
}
|
}
|
||||||
group.connections.push(connection)
|
group.connections.push(connection)
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ export class SSHService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const sshFormatKey = parsedKey!.toString('openssh')
|
const sshFormatKey = parsedKey.toString('openssh')
|
||||||
const temp = await openTemp()
|
const temp = await openTemp()
|
||||||
fs.close(temp.fd)
|
fs.close(temp.fd)
|
||||||
await fs.writeFile(temp.path, sshFormatKey)
|
await fs.writeFile(temp.path, sshFormatKey)
|
||||||
@ -359,7 +359,7 @@ export class SSHService {
|
|||||||
name: connection.group!,
|
name: connection.group!,
|
||||||
connections: [],
|
connections: [],
|
||||||
}
|
}
|
||||||
groups.push(group!)
|
groups.push(group)
|
||||||
}
|
}
|
||||||
group.connections.push(connection)
|
group.connections.push(connection)
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ export class PathDropDecorator extends TerminalDecorator {
|
|||||||
this.subscribeUntilDetached(terminal, terminal.frontend?.dragOver$.subscribe(event => {
|
this.subscribeUntilDetached(terminal, terminal.frontend?.dragOver$.subscribe(event => {
|
||||||
event.preventDefault()
|
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) {
|
for (const file of event.dataTransfer!.files as any) {
|
||||||
this.injectPath(terminal, file.path)
|
this.injectPath(terminal, file.path)
|
||||||
}
|
}
|
||||||
|
@ -298,7 +298,7 @@ export class XTermFrontend extends Frontend {
|
|||||||
html += this.getLineAsHTML(selection.startRow, selection.startColumn, selection.endColumn)
|
html += this.getLineAsHTML(selection.startRow, selection.startColumn, selection.endColumn)
|
||||||
} else {
|
} else {
|
||||||
html += this.getLineAsHTML(selection.startRow, selection.startColumn, this.xterm.cols)
|
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(y, 0, this.xterm.cols)
|
||||||
}
|
}
|
||||||
html += this.getLineAsHTML(selection.endRow, 0, selection.endColumn)
|
html += this.getLineAsHTML(selection.endRow, 0, selection.endColumn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user