mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Clear unused ESLint directives from BE packages (no-changelog) (#6798)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
/* eslint-disable consistent-return */
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||
/* eslint-disable @typescript-eslint/no-shadow */
|
||||
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-use-before-define */
|
||||
/* eslint-disable @typescript-eslint/unbound-method */
|
||||
import 'source-map-support/register';
|
||||
@@ -76,7 +76,6 @@ class WorkflowRunnerProcess {
|
||||
[key: string]: IWorkflowExecuteProcess;
|
||||
} = {};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
||||
static async stopProcess() {
|
||||
setTimeout(() => {
|
||||
// Attempt a graceful shutdown, giving executions 30 seconds to finish
|
||||
@@ -90,7 +89,6 @@ class WorkflowRunnerProcess {
|
||||
|
||||
await initErrorHandling();
|
||||
|
||||
// eslint-disable-next-line no-multi-assign
|
||||
const logger = (this.logger = getLogger());
|
||||
LoggerProxy.init(logger);
|
||||
|
||||
@@ -193,12 +191,10 @@ class WorkflowRunnerProcess {
|
||||
}
|
||||
|
||||
try {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
await sendToParentProcess('sendMessageToUI', { source, message });
|
||||
} catch (error) {
|
||||
ErrorReporter.error(error);
|
||||
this.logger.error(
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access
|
||||
`There was a problem sending UI data to parent process: "${error.message}"`,
|
||||
);
|
||||
}
|
||||
@@ -328,7 +324,7 @@ class WorkflowRunnerProcess {
|
||||
* Sends hook data to the parent process that it executes them
|
||||
*
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
async sendHookToParentProcess(hook: string, parameters: any[]) {
|
||||
try {
|
||||
await sendToParentProcess('processHook', {
|
||||
@@ -377,7 +373,7 @@ class WorkflowRunnerProcess {
|
||||
};
|
||||
|
||||
const preExecuteFunctions = WorkflowExecuteAdditionalData.hookFunctionsPreExecute();
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
|
||||
for (const key of Object.keys(preExecuteFunctions)) {
|
||||
if (hookFunctions[key] === undefined) {
|
||||
hookFunctions[key] = [];
|
||||
@@ -444,7 +440,6 @@ process.on('message', async (message: IProcessMessage) => {
|
||||
if (workflowRunner.workflowExecute !== undefined) {
|
||||
const executionIds = Object.keys(workflowRunner.childExecutions);
|
||||
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (const executionId of executionIds) {
|
||||
const childWorkflowExecute = workflowRunner.childExecutions[executionId];
|
||||
runData = childWorkflowExecute.workflowExecute.getFullRunData(
|
||||
@@ -456,7 +451,7 @@ process.on('message', async (message: IProcessMessage) => {
|
||||
: new WorkflowOperationError('Workflow-Execution has been canceled!');
|
||||
|
||||
// If there is any data send it to parent process, if execution timedout add the error
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
|
||||
await childWorkflowExecute.workflowExecute.processSuccessExecution(
|
||||
workflowRunner.childExecutions[executionId].startedAt,
|
||||
childWorkflowExecute.workflow,
|
||||
@@ -507,7 +502,6 @@ process.on('message', async (message: IProcessMessage) => {
|
||||
// Stop process
|
||||
process.exit();
|
||||
} else if (message.type === 'executionId') {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
workflowRunner.executionIdCallback(message.data.executionId);
|
||||
}
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user