mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 04:10:01 +00:00
ci: Stop disabling linting rules that are explicitly set to warn (no-changelog) (#7669)
This commit is contained in:
committed by
GitHub
parent
ad596abeb9
commit
5edf722209
@@ -170,7 +170,6 @@ export class ActiveExecutions {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// execute on next event loop tick;
|
// execute on next event loop tick;
|
||||||
this.activeExecutions[executionId].process!.send({
|
this.activeExecutions[executionId].process!.send({
|
||||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
||||||
type: timeout || 'stopExecution',
|
type: timeout || 'stopExecution',
|
||||||
});
|
});
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ export class ExternalHooks implements IExternalHooksClass {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
async run(hookName: string, hookParameters?: any[]): Promise<void> {
|
async run(hookName: string, hookParameters?: any[]): Promise<void> {
|
||||||
const externalHookFunctions: IExternalHooksFunctions = {
|
const externalHookFunctions: IExternalHooksFunctions = {
|
||||||
dbCollections: Db.collections,
|
dbCollections: Db.collections,
|
||||||
|
|||||||
@@ -76,7 +76,6 @@ export class ExternalSecretsService {
|
|||||||
return copiedData;
|
return copiedData;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
private unredactRestoreValues(unmerged: any, replacement: any) {
|
private unredactRestoreValues(unmerged: any, replacement: any) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||||
for (const [key, value] of Object.entries(unmerged)) {
|
for (const [key, value] of Object.entries(unmerged)) {
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ export class VaultProvider extends SecretsProvider {
|
|||||||
try {
|
try {
|
||||||
listResp = await this.#http.request<VaultResponse<VaultSecretList>>({
|
listResp = await this.#http.request<VaultResponse<VaultSecretList>>({
|
||||||
url: listPath,
|
url: listPath,
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||||
method: 'LIST' as any,
|
method: 'LIST' as any,
|
||||||
});
|
});
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
@@ -280,7 +280,6 @@ export interface IExternalHooks {
|
|||||||
|
|
||||||
export interface IExternalHooksFileData {
|
export interface IExternalHooksFileData {
|
||||||
[key: string]: {
|
[key: string]: {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
[key: string]: Array<(...args: any[]) => Promise<void>>;
|
[key: string]: Array<(...args: any[]) => Promise<void>>;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -291,7 +290,6 @@ export interface IExternalHooksFunctions {
|
|||||||
|
|
||||||
export interface IExternalHooksClass {
|
export interface IExternalHooksClass {
|
||||||
init(): Promise<void>;
|
init(): Promise<void>;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
run(hookName: string, hookParameters?: any[]): Promise<void>;
|
run(hookName: string, hookParameters?: any[]): Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -636,7 +634,6 @@ export interface INodesTypeData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IWorkflowErrorData {
|
export interface IWorkflowErrorData {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
execution?: {
|
execution?: {
|
||||||
id?: string;
|
id?: string;
|
||||||
@@ -658,7 +655,6 @@ export interface IWorkflowErrorData {
|
|||||||
|
|
||||||
export interface IProcessMessageDataHook {
|
export interface IProcessMessageDataHook {
|
||||||
hook: string;
|
hook: string;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
parameters: any[];
|
parameters: any[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,6 @@ export class Logger {
|
|||||||
// We are in runtime, so it means we are looking at compiled js files
|
// We are in runtime, so it means we are looking at compiled js files
|
||||||
const logDetails = {} as IDataObject;
|
const logDetails = {} as IDataObject;
|
||||||
if (callsite[2] !== undefined) {
|
if (callsite[2] !== undefined) {
|
||||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
||||||
logDetails.file = basename(callsite[2].getFileName() || '');
|
logDetails.file = basename(callsite[2].getFileName() || '');
|
||||||
const functionName = callsite[2].getFunctionName();
|
const functionName = callsite[2].getFunctionName();
|
||||||
if (functionName) {
|
if (functionName) {
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||||
|
|
||||||
import type { Request, Response } from 'express';
|
import type { Request, Response } from 'express';
|
||||||
import { parse, stringify } from 'flatted';
|
import { parse, stringify } from 'flatted';
|
||||||
import picocolors from 'picocolors';
|
import picocolors from 'picocolors';
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
||||||
/* eslint-disable id-denylist */
|
/* eslint-disable id-denylist */
|
||||||
/* eslint-disable prefer-spread */
|
/* eslint-disable prefer-spread */
|
||||||
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
|
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||||
/* eslint-disable @typescript-eslint/restrict-template-expressions */
|
/* eslint-disable @typescript-eslint/restrict-template-expressions */
|
||||||
import type express from 'express';
|
import type express from 'express';
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||||
/* eslint-disable @typescript-eslint/no-use-before-define */
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
||||||
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
|
|
||||||
/* eslint-disable id-denylist */
|
/* eslint-disable id-denylist */
|
||||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
|
|||||||
@@ -28,13 +28,11 @@ import type {
|
|||||||
IWorkflowExecutionDataProcess,
|
IWorkflowExecutionDataProcess,
|
||||||
} from '@/Interfaces';
|
} from '@/Interfaces';
|
||||||
import { NodeTypes } from '@/NodeTypes';
|
import { NodeTypes } from '@/NodeTypes';
|
||||||
// eslint-disable-next-line import/no-cycle
|
|
||||||
import { WorkflowRunner } from '@/WorkflowRunner';
|
import { WorkflowRunner } from '@/WorkflowRunner';
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
import type { WorkflowEntity } from '@db/entities/WorkflowEntity';
|
import type { WorkflowEntity } from '@db/entities/WorkflowEntity';
|
||||||
import type { User } from '@db/entities/User';
|
import type { User } from '@db/entities/User';
|
||||||
import omit from 'lodash/omit';
|
import omit from 'lodash/omit';
|
||||||
// eslint-disable-next-line import/no-cycle
|
|
||||||
import { PermissionChecker } from './UserManagement/PermissionChecker';
|
import { PermissionChecker } from './UserManagement/PermissionChecker';
|
||||||
import { UserService } from './services/user.service';
|
import { UserService } from './services/user.service';
|
||||||
import type { SharedWorkflow } from '@db/entities/SharedWorkflow';
|
import type { SharedWorkflow } from '@db/entities/SharedWorkflow';
|
||||||
|
|||||||
@@ -40,9 +40,7 @@ import type { Job, JobData, JobResponse } from '@/Queue';
|
|||||||
|
|
||||||
import { Queue } from '@/Queue';
|
import { Queue } from '@/Queue';
|
||||||
import { decodeWebhookResponse } from '@/helpers/decodeWebhookResponse';
|
import { decodeWebhookResponse } from '@/helpers/decodeWebhookResponse';
|
||||||
// eslint-disable-next-line import/no-cycle
|
|
||||||
import * as WorkflowHelpers from '@/WorkflowHelpers';
|
import * as WorkflowHelpers from '@/WorkflowHelpers';
|
||||||
// eslint-disable-next-line import/no-cycle
|
|
||||||
import * as WorkflowExecuteAdditionalData from '@/WorkflowExecuteAdditionalData';
|
import * as WorkflowExecuteAdditionalData from '@/WorkflowExecuteAdditionalData';
|
||||||
import { generateFailedExecutionFromError } from '@/WorkflowHelpers';
|
import { generateFailedExecutionFromError } from '@/WorkflowHelpers';
|
||||||
import { initErrorHandling } from '@/ErrorReporting';
|
import { initErrorHandling } from '@/ErrorReporting';
|
||||||
|
|||||||
@@ -309,9 +309,7 @@ class WorkflowRunnerProcess {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends hook data to the parent process that it executes them
|
* Sends hook data to the parent process that it executes them
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
async sendHookToParentProcess(hook: string, parameters: any[]) {
|
async sendHookToParentProcess(hook: string, parameters: any[]) {
|
||||||
try {
|
try {
|
||||||
await sendToParentProcess('processHook', {
|
await sendToParentProcess('processHook', {
|
||||||
@@ -384,7 +382,6 @@ class WorkflowRunnerProcess {
|
|||||||
* @param {string} type The type of data to send
|
* @param {string} type The type of data to send
|
||||||
* @param {*} data The data
|
* @param {*} data The data
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
async function sendToParentProcess(type: string, data: any): Promise<void> {
|
async function sendToParentProcess(type: string, data: any): Promise<void> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
process.send!(
|
process.send!(
|
||||||
|
|||||||
@@ -353,7 +353,6 @@ export class CredentialsService {
|
|||||||
return copiedData;
|
return copiedData;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
private static unredactRestoreValues(unmerged: any, replacement: any) {
|
private static unredactRestoreValues(unmerged: any, replacement: any) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||||
for (const [key, value] of Object.entries(unmerged)) {
|
for (const [key, value] of Object.entries(unmerged)) {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/ban-types */
|
|
||||||
/* eslint-disable @typescript-eslint/naming-convention */
|
/* eslint-disable @typescript-eslint/naming-convention */
|
||||||
import { CONTROLLER_AUTH_ROLES } from './constants';
|
import { CONTROLLER_AUTH_ROLES } from './constants';
|
||||||
import type { AuthRoleMetadata } from './types';
|
import type { AuthRoleMetadata } from './types';
|
||||||
|
|||||||
@@ -165,7 +165,6 @@ export class MessageEventBusDestinationWebhook
|
|||||||
}
|
}
|
||||||
|
|
||||||
const parametersToKeyValue = async (
|
const parametersToKeyValue = async (
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
acc: Promise<{ [key: string]: any }>,
|
acc: Promise<{ [key: string]: any }>,
|
||||||
cur: { name: string; value: string; parameterType?: string; inputDataFieldName?: string },
|
cur: { name: string; value: string; parameterType?: string; inputDataFieldName?: string },
|
||||||
) => {
|
) => {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
||||||
import { appendFileSync, existsSync, rmSync, renameSync, openSync, closeSync } from 'fs';
|
import { appendFileSync, existsSync, rmSync, renameSync, openSync, closeSync } from 'fs';
|
||||||
import { stat } from 'fs/promises';
|
import { stat } from 'fs/promises';
|
||||||
import { isMainThread, parentPort } from 'worker_threads';
|
import { isMainThread, parentPort } from 'worker_threads';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
||||||
import express from 'express';
|
import express from 'express';
|
||||||
import { eventBus } from './MessageEventBus/MessageEventBus';
|
import { eventBus } from './MessageEventBus/MessageEventBus';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ export interface IGetExecutionsQueryFilter {
|
|||||||
retrySuccessId?: string;
|
retrySuccessId?: string;
|
||||||
status?: ExecutionStatus[];
|
status?: ExecutionStatus[];
|
||||||
workflowId?: string;
|
workflowId?: string;
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
waitTill?: FindOperator<any> | boolean;
|
waitTill?: FindOperator<any> | boolean;
|
||||||
metadata?: Array<{ key: string; value: string }>;
|
metadata?: Array<{ key: string; value: string }>;
|
||||||
startedAfter?: string;
|
startedAfter?: string;
|
||||||
|
|||||||
@@ -114,7 +114,6 @@ test('should have logwriter log messages', async () => {
|
|||||||
});
|
});
|
||||||
await eventBus.send(testMessage);
|
await eventBus.send(testMessage);
|
||||||
await new Promise((resolve) => {
|
await new Promise((resolve) => {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
eventBus.logWriter.worker?.once('message', async (msg: { command: string; data: any }) => {
|
eventBus.logWriter.worker?.once('message', async (msg: { command: string; data: any }) => {
|
||||||
expect(msg.command).toBe('appendMessageToLog');
|
expect(msg.command).toBe('appendMessageToLog');
|
||||||
expect(msg.data).toBe(true);
|
expect(msg.data).toBe(true);
|
||||||
|
|||||||
@@ -103,7 +103,6 @@ export async function truncate(collections: CollectionName[]) {
|
|||||||
if (typeof collection === 'string') {
|
if (typeof collection === 'string') {
|
||||||
await Db.collections[collection].delete({});
|
await Db.collections[collection].delete({});
|
||||||
} else {
|
} else {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
await Container.get(collection as { new (): Repository<any> }).delete({});
|
await Container.get(collection as { new (): Repository<any> }).delete({});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,6 @@ describe('GET /workflow-history/:workflowId', () => {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
const last = versions.sort((a, b) => b.createdAt.valueOf() - a.createdAt.valueOf())[0]! as any;
|
const last = versions.sort((a, b) => b.createdAt.valueOf() - a.createdAt.valueOf())[0]! as any;
|
||||||
delete last.nodes;
|
delete last.nodes;
|
||||||
delete last.connections;
|
delete last.connections;
|
||||||
@@ -101,7 +100,6 @@ describe('GET /workflow-history/:workflowId', () => {
|
|||||||
new Array(10).fill(undefined).map(async (_) => createWorkflowHistoryItem(workflow2.id)),
|
new Array(10).fill(undefined).map(async (_) => createWorkflowHistoryItem(workflow2.id)),
|
||||||
);
|
);
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
const last = versions.sort((a, b) => b.createdAt.valueOf() - a.createdAt.valueOf())[0]! as any;
|
const last = versions.sort((a, b) => b.createdAt.valueOf() - a.createdAt.valueOf())[0]! as any;
|
||||||
delete last.nodes;
|
delete last.nodes;
|
||||||
delete last.connections;
|
delete last.connections;
|
||||||
@@ -125,7 +123,6 @@ describe('GET /workflow-history/:workflowId', () => {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
const last = versions.sort((a, b) => b.createdAt.valueOf() - a.createdAt.valueOf())[0]! as any;
|
const last = versions.sort((a, b) => b.createdAt.valueOf() - a.createdAt.valueOf())[0]! as any;
|
||||||
delete last.nodes;
|
delete last.nodes;
|
||||||
delete last.connections;
|
delete last.connections;
|
||||||
@@ -149,7 +146,6 @@ describe('GET /workflow-history/:workflowId', () => {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
const last = versions.sort((a, b) => b.createdAt.valueOf() - a.createdAt.valueOf())[5]! as any;
|
const last = versions.sort((a, b) => b.createdAt.valueOf() - a.createdAt.valueOf())[5]! as any;
|
||||||
delete last.nodes;
|
delete last.nodes;
|
||||||
delete last.connections;
|
delete last.connections;
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ function toIRun(item?: object) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getDataId(run: IRun, kind: 'binary' | 'json') {
|
function getDataId(run: IRun, kind: 'binary' | 'json') {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return run.data.resultData.runData.myNode[0].data.main[0][0][kind].data.id;
|
return run.data.resultData.runData.myNode[0].data.main[0][0][kind].data.id;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ describe('cacheService', () => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
// second mock for our code
|
// second mock for our code
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
return function (...args: any) {
|
return function (...args: any) {
|
||||||
return new Redis(args);
|
return new Redis(args);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ describe('Orchestration Service', () => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
// second mock for our code
|
// second mock for our code
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
return function (...args: any) {
|
return function (...args: any) {
|
||||||
return new Redis(args);
|
return new Redis(args);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ describe('RedisService', () => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
// second mock for our code
|
// second mock for our code
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
||||||
return function (...args: any) {
|
return function (...args: any) {
|
||||||
return new Redis(args);
|
return new Redis(args);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user