mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor: Remove unused lint directives (no-changelog) (#9842)
This commit is contained in:
@@ -81,7 +81,7 @@ export class ActiveCampaign implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'ActiveCampaign',
|
||||
name: 'activeCampaign',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: { light: 'file:activeCampaign.svg', dark: 'file:activeCampaign.dark.svg' },
|
||||
group: ['transform'],
|
||||
version: 1,
|
||||
|
||||
@@ -26,7 +26,7 @@ export class Affinity implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Affinity',
|
||||
name: 'affinity',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: { light: 'file:affinity.svg', dark: 'file:affinity.dark.svg' },
|
||||
group: ['output'],
|
||||
version: 1,
|
||||
|
||||
@@ -18,7 +18,7 @@ export class Amqp implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'AMQP Sender',
|
||||
name: 'amqp',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: 'file:amqp.svg',
|
||||
group: ['transform'],
|
||||
version: 1,
|
||||
|
||||
@@ -14,7 +14,7 @@ export class CircleCi implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'CircleCI',
|
||||
name: 'circleCi',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: { light: 'file:circleCi.svg', dark: 'file:circleCi.dark.svg' },
|
||||
group: ['output'],
|
||||
version: 1,
|
||||
|
||||
@@ -23,7 +23,7 @@ export class Cockpit implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Cockpit',
|
||||
name: 'cockpit',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: { light: 'file:cockpit.svg', dark: 'file:cockpit.dark.svg' },
|
||||
group: ['output'],
|
||||
version: 1,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
||||
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
INodeExecutionData,
|
||||
|
||||
@@ -318,7 +318,7 @@ const embedFields: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Color',
|
||||
name: 'color',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-color-type-unused
|
||||
|
||||
type: 'color',
|
||||
default: '',
|
||||
description: 'Color code of the embed',
|
||||
|
||||
@@ -13,7 +13,7 @@ export class Drift implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Drift',
|
||||
name: 'drift',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: { light: 'file:drift.svg', dark: 'file:drift.dark.svg' },
|
||||
group: ['output'],
|
||||
version: 1,
|
||||
|
||||
@@ -17,7 +17,7 @@ export class Egoi implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'E-goi',
|
||||
name: 'egoi',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: 'file:egoi.svg',
|
||||
group: ['output'],
|
||||
version: 1,
|
||||
|
||||
@@ -12,7 +12,6 @@ import * as toJson from './actions/toJson.operation';
|
||||
import * as iCall from './actions/iCall.operation';
|
||||
|
||||
export class ConvertToFile implements INodeType {
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-missing-subtitle
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Convert to File',
|
||||
name: 'convertToFile',
|
||||
|
||||
@@ -15,7 +15,7 @@ export class Flow implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Flow',
|
||||
name: 'flow',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: 'file:flow.svg',
|
||||
group: ['output'],
|
||||
version: 1,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const webhookPath: INodeProperties = {
|
||||
|
||||
@@ -74,7 +74,7 @@ export class Freshdesk implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Freshdesk',
|
||||
name: 'freshdesk',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: 'file:freshdesk.svg',
|
||||
group: ['output'],
|
||||
version: 1,
|
||||
|
||||
@@ -16,7 +16,7 @@ export class GoogleTasks implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Google Tasks',
|
||||
name: 'googleTasks',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: 'file:googleTasks.svg',
|
||||
group: ['input'],
|
||||
version: 1,
|
||||
|
||||
@@ -12,9 +12,9 @@ import set from 'lodash/set';
|
||||
import isPlainObject from 'lodash/isPlainObject';
|
||||
|
||||
import FormData from 'form-data';
|
||||
import get from 'lodash/get';
|
||||
import { formatPrivateKey } from '../../utils/utilities';
|
||||
import type { HttpSslAuthCredentials } from './interfaces';
|
||||
import get from 'lodash/get';
|
||||
|
||||
export type BodyParameter = {
|
||||
name: string;
|
||||
|
||||
@@ -14,7 +14,7 @@ export class HumanticAi implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Humantic AI',
|
||||
name: 'humanticAi',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: 'file:humanticai.svg',
|
||||
group: ['output'],
|
||||
version: 1,
|
||||
|
||||
@@ -22,7 +22,7 @@ export class IfV1 implements INodeType {
|
||||
color: '#408000',
|
||||
},
|
||||
inputs: ['main'],
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong
|
||||
|
||||
outputs: ['main', 'main'],
|
||||
outputNames: ['true', 'false'],
|
||||
properties: [
|
||||
|
||||
@@ -21,7 +21,7 @@ export class Intercom implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Intercom',
|
||||
name: 'intercom',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: 'file:intercom.svg',
|
||||
group: ['output'],
|
||||
version: 1,
|
||||
|
||||
@@ -16,9 +16,9 @@ import pick from 'lodash/pick';
|
||||
import set from 'lodash/set';
|
||||
import unset from 'lodash/unset';
|
||||
|
||||
import { flattenKeys, shuffleArray, compareItems } from '@utils/utilities';
|
||||
import { sortByCode } from '../V3/helpers/utils';
|
||||
import * as summarize from './summarize.operation';
|
||||
import { flattenKeys, shuffleArray, compareItems } from '@utils/utilities';
|
||||
|
||||
export class ItemListsV1 implements INodeType {
|
||||
description: INodeTypeDescription;
|
||||
|
||||
@@ -17,9 +17,9 @@ import pick from 'lodash/pick';
|
||||
import set from 'lodash/set';
|
||||
import unset from 'lodash/unset';
|
||||
|
||||
import { flattenKeys, shuffleArray, compareItems } from '@utils/utilities';
|
||||
import { sortByCode } from '../V3/helpers/utils';
|
||||
import * as summarize from './summarize.operation';
|
||||
import { flattenKeys, shuffleArray, compareItems } from '@utils/utilities';
|
||||
|
||||
export class ItemListsV2 implements INodeType {
|
||||
description: INodeTypeDescription;
|
||||
|
||||
@@ -6,9 +6,9 @@ import isEqual from 'lodash/isEqual';
|
||||
import lt from 'lodash/lt';
|
||||
import pick from 'lodash/pick';
|
||||
|
||||
import { compareItems, flattenKeys, updateDisplayOptions } from '@utils/utilities';
|
||||
import { prepareFieldsArray, typeToNumber } from '../../helpers/utils';
|
||||
import { disableDotNotationBoolean } from '../common.descriptions';
|
||||
import { compareItems, flattenKeys, updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -56,7 +56,6 @@ export class JiraTrigger implements INodeType {
|
||||
},
|
||||
},
|
||||
{
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-credentials-name-unsuffixed
|
||||
name: 'httpQueryAuth',
|
||||
displayName: 'Credentials to Authenticate Webhook',
|
||||
displayOptions: {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
||||
import get from 'lodash/get';
|
||||
|
||||
import type {
|
||||
@@ -27,7 +26,7 @@ export class MergeV1 implements INodeType {
|
||||
name: 'Merge',
|
||||
color: '#00bbcc',
|
||||
},
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
|
||||
|
||||
inputs: ['main', 'main'],
|
||||
outputs: ['main'],
|
||||
inputNames: ['Input 1', 'Input 2'],
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
||||
|
||||
import merge from 'lodash/merge';
|
||||
|
||||
import type {
|
||||
@@ -41,7 +39,7 @@ export class MergeV2 implements INodeType {
|
||||
defaults: {
|
||||
name: 'Merge',
|
||||
},
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node
|
||||
|
||||
inputs: ['main', 'main'],
|
||||
outputs: ['main'],
|
||||
inputNames: ['Input 1', 'Input 2'],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import nock from 'nock';
|
||||
import { equalityTest, setup, workflowToTests } from '@test/nodes/Helpers';
|
||||
import type { IHttpRequestMethods } from 'n8n-workflow';
|
||||
import { equalityTest, setup, workflowToTests } from '@test/nodes/Helpers';
|
||||
|
||||
jest.mock('../../../../v2/transport', () => {
|
||||
const originalModule = jest.requireActual('../../../../v2/transport');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import nock from 'nock';
|
||||
import { equalityTest, setup, workflowToTests } from '@test/nodes/Helpers';
|
||||
import type { IHttpRequestMethods } from 'n8n-workflow';
|
||||
import { equalityTest, setup, workflowToTests } from '@test/nodes/Helpers';
|
||||
|
||||
jest.mock('../../../../v2/transport', () => {
|
||||
const originalModule = jest.requireActual('../../../../v2/transport');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import nock from 'nock';
|
||||
import { equalityTest, setup, workflowToTests } from '@test/nodes/Helpers';
|
||||
import type { IHttpRequestMethods } from 'n8n-workflow';
|
||||
import { equalityTest, setup, workflowToTests } from '@test/nodes/Helpers';
|
||||
|
||||
jest.mock('../../../../v2/transport', () => {
|
||||
const originalModule = jest.requireActual('../../../../v2/transport');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import nock from 'nock';
|
||||
import { equalityTest, setup, workflowToTests } from '@test/nodes/Helpers';
|
||||
import type { IHttpRequestMethods } from 'n8n-workflow';
|
||||
import { equalityTest, setup, workflowToTests } from '@test/nodes/Helpers';
|
||||
|
||||
jest.mock('../../../../v2/transport', () => {
|
||||
const originalModule = jest.requireActual('../../../../v2/transport');
|
||||
|
||||
@@ -114,7 +114,7 @@ export async function microsoftApiRequestAllItemsDelta(
|
||||
do {
|
||||
responseData = (await microsoftApiRequest.call(this, 'GET', '', {}, {}, uri)) as IDataObject;
|
||||
uri = responseData['@odata.nextLink'] as string;
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
|
||||
for (const value of responseData.value as IDataObject[]) {
|
||||
if (value.fileSystemInfo as IDataObject) {
|
||||
const updatedTimeStamp = (value.fileSystemInfo as IDataObject)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
INodeType,
|
||||
|
||||
@@ -14,7 +14,7 @@ export class Msg91 implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'MSG91',
|
||||
name: 'msg91',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: { light: 'file:msg91.svg', dark: 'file:msg91.dark.svg' },
|
||||
group: ['transform'],
|
||||
version: 1,
|
||||
|
||||
@@ -21,8 +21,8 @@ import { camelCase, capitalCase, snakeCase } from 'change-case';
|
||||
import moment from 'moment-timezone';
|
||||
|
||||
import { validate as uuidValidate } from 'uuid';
|
||||
import { filters } from './descriptions/Filters';
|
||||
import set from 'lodash/set';
|
||||
import { filters } from './descriptions/Filters';
|
||||
|
||||
function uuidValidateWithoutDashes(this: IExecuteFunctions, value: string) {
|
||||
if (uuidValidate(value)) return true;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { NodeConnectionType } from 'n8n-workflow';
|
||||
import { apiUrl } from '../Peekalink.node';
|
||||
import type { WorkflowTestData } from '@test/nodes/types';
|
||||
import { executeWorkflow } from '@test/nodes/ExecuteWorkflow';
|
||||
import * as Helpers from '@test/nodes/Helpers';
|
||||
import { NodeConnectionType } from 'n8n-workflow';
|
||||
|
||||
describe('Peekalink Node', () => {
|
||||
const exampleComPreview = {
|
||||
|
||||
@@ -3,10 +3,10 @@ import { NodeExecutionOutput, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { configurePostgres } from '../transport';
|
||||
import { configureQueryRunner } from '../helpers/utils';
|
||||
import type { PostgresNodeCredentials, PostgresNodeOptions } from '../helpers/interfaces';
|
||||
import type { PostgresType } from './node.type';
|
||||
|
||||
import * as database from './database/Database.resource';
|
||||
import type { PostgresNodeCredentials, PostgresNodeOptions } from '../helpers/interfaces';
|
||||
|
||||
export async function router(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||
let returnData: INodeExecutionData[] = [];
|
||||
|
||||
@@ -23,7 +23,7 @@ export class ProfitWell implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'ProfitWell',
|
||||
name: 'profitWell',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: { light: 'file:profitwell.svg', dark: 'file:profitwell.dark.svg' },
|
||||
group: ['output'],
|
||||
version: 1,
|
||||
|
||||
@@ -20,7 +20,7 @@ export class RabbitMQ implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'RabbitMQ',
|
||||
name: 'rabbitmq',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: 'file:rabbitmq.svg',
|
||||
group: ['transform'],
|
||||
version: [1, 1.1],
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable @typescript-eslint/no-loop-func */
|
||||
import type {
|
||||
ITriggerFunctions,
|
||||
IDataObject,
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
NodeOperationError,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import set from 'lodash/set';
|
||||
import {
|
||||
formatFeed,
|
||||
formatResults,
|
||||
@@ -37,7 +38,6 @@ import {
|
||||
} from './descriptions';
|
||||
|
||||
import type { SplunkCredentials, SplunkFeedResponse } from './types';
|
||||
import set from 'lodash/set';
|
||||
|
||||
export class Splunk implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
|
||||
@@ -46,7 +46,7 @@ export class StickyNote implements INodeType {
|
||||
{
|
||||
displayName: 'Color',
|
||||
name: 'color',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-color-type-unused
|
||||
|
||||
type: 'number',
|
||||
required: true,
|
||||
default: 1,
|
||||
|
||||
@@ -5,6 +5,7 @@ import {
|
||||
type INodeType,
|
||||
type INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
import { generatePairedItemData } from '../../../utils/utilities';
|
||||
import {
|
||||
type Aggregations,
|
||||
NUMERICAL_AGGREGATIONS,
|
||||
@@ -14,7 +15,6 @@ import {
|
||||
fieldValueGetter,
|
||||
splitData,
|
||||
} from './utils';
|
||||
import { generatePairedItemData } from '../../../utils/utilities';
|
||||
|
||||
export class Summarize implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
|
||||
@@ -12,7 +12,7 @@ export class Vonage implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Vonage',
|
||||
name: 'vonage',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: { light: 'file:vonage.svg', dark: 'file:vonage.dark.svg' },
|
||||
group: ['input'],
|
||||
version: 1,
|
||||
|
||||
@@ -20,6 +20,7 @@ import isbot from 'isbot';
|
||||
import { file as tmpFile } from 'tmp-promise';
|
||||
import jwt from 'jsonwebtoken';
|
||||
|
||||
import { formatPrivateKey } from '../../utils/utilities';
|
||||
import {
|
||||
authenticationProperty,
|
||||
credentialsProperty,
|
||||
@@ -39,7 +40,6 @@ import {
|
||||
isIpWhitelisted,
|
||||
setupOutputConnection,
|
||||
} from './utils';
|
||||
import { formatPrivateKey } from '../../utils/utilities';
|
||||
|
||||
export class Webhook extends Node {
|
||||
authPropertyName = 'authentication';
|
||||
@@ -330,7 +330,7 @@ export class Webhook extends Node {
|
||||
}
|
||||
|
||||
const authHeader = req.headers.authorization;
|
||||
const token = authHeader && authHeader.split(' ')[1];
|
||||
const token = authHeader?.split(' ')[1];
|
||||
|
||||
if (!token) {
|
||||
throw new WebhookAuthorizationError(401, 'No token provided');
|
||||
|
||||
@@ -31,7 +31,7 @@ export class Wekan implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Wekan',
|
||||
name: 'wekan',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-class-description-icon-not-svg
|
||||
|
||||
icon: 'file:wekan.svg',
|
||||
group: ['transform'],
|
||||
version: 1,
|
||||
|
||||
Reference in New Issue
Block a user