mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
ci: Enforce noUnusedLocals on all backend and nodes packages (no-changelog) (#8428)
This commit is contained in:
committed by
GitHub
parent
16a2ea5df0
commit
cc2f0ada76
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user