refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)

This commit is contained in:
Michael Kret
2023-01-13 19:11:56 +02:00
committed by GitHub
parent d7732ea150
commit 6608e69457
254 changed files with 2687 additions and 2675 deletions

View File

@@ -1,6 +1,7 @@
import { IExecuteFunctions } from 'n8n-core';
import {
IDataObject,
INodeExecutionData,
INodeType,
INodeTypeDescription,
@@ -11,7 +12,7 @@ import { readFile, rm, writeFile } from 'fs/promises';
import { file } from 'tmp-promise';
const nodeSSH = require('node-ssh');
import { NodeSSH } from 'node-ssh';
export class Ssh implements INodeType {
description: INodeTypeDescription = {
@@ -252,7 +253,7 @@ export class Ssh implements INodeType {
const temporaryFiles: string[] = [];
const ssh = new nodeSSH.NodeSSH();
const ssh = new NodeSSH();
try {
if (authentication === 'password') {
@@ -292,7 +293,7 @@ export class Ssh implements INodeType {
const command = this.getNodeParameter('command', i) as string;
const cwd = this.getNodeParameter('cwd', i) as string;
returnItems.push({
json: await ssh.execCommand(command, { cwd }),
json: (await ssh.execCommand(command, { cwd })) as unknown as IDataObject,
pairedItem: {
item: i,
},