ci: Enforce noUnusedLocals on all backend and nodes packages (no-changelog) (#8428)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-01-25 14:33:35 +01:00
committed by GitHub
parent 16a2ea5df0
commit cc2f0ada76
15 changed files with 33 additions and 93 deletions

View File

@@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/no-unsafe-call */
@@ -2527,8 +2526,6 @@ async function getInputConnectionData(
closeFunctions: CloseFunction[],
inputName: ConnectionTypes,
itemIndex: number,
// TODO: Not implemented yet, and maybe also not needed
inputIndex?: number,
): Promise<unknown> {
const node = this.getNode();
const nodeType = workflow.nodeTypes.getByNameAndVersion(node.type, node.typeVersion);
@@ -3201,12 +3198,12 @@ export function getExecutePollFunctions(
return ((workflow: Workflow, node: INode) => {
return {
...getCommonWorkflowFunctions(workflow, node, additionalData),
__emit: (data: INodeExecutionData[][]): void => {
__emit: (): void => {
throw new ApplicationError(
'Overwrite NodeExecuteFunctions.getExecutePollFunctions.__emit function!',
);
},
__emitError(error: Error) {
__emitError() {
throw new ApplicationError(
'Overwrite NodeExecuteFunctions.getExecutePollFunctions.__emitError function!',
);
@@ -3264,12 +3261,12 @@ export function getExecuteTriggerFunctions(
return ((workflow: Workflow, node: INode) => {
return {
...getCommonWorkflowFunctions(workflow, node, additionalData),
emit: (data: INodeExecutionData[][]): void => {
emit: (): void => {
throw new ApplicationError(
'Overwrite NodeExecuteFunctions.getExecuteTriggerFunctions.emit function!',
);
},
emitError: (error: Error): void => {
emitError: (): void => {
throw new ApplicationError(
'Overwrite NodeExecuteFunctions.getExecuteTriggerFunctions.emit function!',
);
@@ -3390,8 +3387,6 @@ export function getExecuteFunctions(
async getInputConnectionData(
inputName: ConnectionTypes,
itemIndex: number,
// TODO: Not implemented yet, and maybe also not needed
inputIndex?: number,
): Promise<unknown> {
return await getInputConnectionData.call(
this,
@@ -3405,7 +3400,6 @@ export function getExecuteFunctions(
closeFunctions,
inputName,
itemIndex,
inputIndex,
);
},
@@ -3919,8 +3913,6 @@ export function getExecuteWebhookFunctions(
async getInputConnectionData(
inputName: ConnectionTypes,
itemIndex: number,
// TODO: Not implemented yet, and maybe also not needed
inputIndex?: number,
): Promise<unknown> {
// To be able to use expressions like "$json.sessionId" set the
// body data the webhook received to what is normally used for
@@ -3954,7 +3946,6 @@ export function getExecuteWebhookFunctions(
closeFunctions,
inputName,
itemIndex,
inputIndex,
);
},
getMode: () => mode,