Skip to content

Commit

Permalink
refactor: Remove unused disable directives from nodes-base (#10825)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov authored and riascho committed Sep 23, 2024
1 parent 296ba74 commit e29c1c2
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 20 deletions.
1 change: 0 additions & 1 deletion packages/nodes-base/nodes/AiTransform/AiTransform.node.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable n8n-nodes-base/node-dirname-against-convention */
import {
NodeOperationError,
NodeConnectionType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export class CompareDatasets implements INodeType {
version: [1, 2, 2.1, 2.2, 2.3],
description: 'Compare two inputs for changes',
defaults: { name: 'Compare Datasets' },
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [NodeConnectionType.Main, NodeConnectionType.Main],
inputNames: ['Input A', 'Input B'],
requiredInputs: 1,
// eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong

outputs: [
NodeConnectionType.Main,
NodeConnectionType.Main,
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Cron/Cron.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Cron implements INodeType {
name: 'Cron',
color: '#29a568',
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
outputs: [NodeConnectionType.Main],
properties: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const versionDescription: INodeTypeDescription = {
activationHint:
"Once you’ve finished building your workflow, <a data-key='activate'>activate</a> it to have it also listen continuously (you just won’t see those executions here).",
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
outputs: [NodeConnectionType.Main],
credentials: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const versionDescription: INodeTypeDescription = {
activationHint:
"Once you’ve finished building your workflow, <a data-key='activate'>activate</a> it to have it also listen continuously (you just won’t see those executions here).",
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
outputs: [NodeConnectionType.Main],
credentials: [
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Form/v1/FormTriggerV1.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const descriptionV1: INodeTypeDescription = {
defaults: {
name: 'n8n Form Trigger',
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
outputs: [NodeConnectionType.Main],
webhooks: [
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Form/v2/FormTriggerV2.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const descriptionV2: INodeTypeDescription = {
defaults: {
name: 'n8n Form Trigger',
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
outputs: [NodeConnectionType.Main],
webhooks: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable n8n-nodes-base/node-filename-against-convention */
import {
type IExecuteFunctions,
type IDataObject,
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Interval/Interval.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Interval implements INodeType {
name: 'Interval',
color: '#00FF00',
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
outputs: [NodeConnectionType.Main],
properties: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class SplitInBatchesV2 implements INodeType {
color: '#007755',
},
inputs: [NodeConnectionType.Main],
// eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong

outputs: [NodeConnectionType.Main, NodeConnectionType.Main],
outputNames: ['loop', 'done'],
properties: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class SplitInBatchesV3 implements INodeType {
color: '#007755',
},
inputs: [NodeConnectionType.Main],
// eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong

outputs: [NodeConnectionType.Main, NodeConnectionType.Main],
outputNames: ['done', 'loop'],
properties: [
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Start/Start.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class Start implements INodeType {
name: 'Start',
color: '#00e000',
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
outputs: [NodeConnectionType.Main],
properties: [
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/StickyNote/StickyNote.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export class StickyNote implements INodeType {
name: 'Sticky Note',
color: '#FFD233',
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
// eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong

outputs: [],
properties: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class StopAndError implements INodeType {
color: '#ff0000',
},
inputs: [NodeConnectionType.Main],
// eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong

outputs: [],
properties: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class WebflowTriggerV1 implements INodeType {
defaults: {
name: 'Webflow Trigger',
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
outputs: [NodeConnectionType.Main],
credentials: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class WebflowTriggerV2 implements INodeType {
defaults: {
name: 'Webflow Trigger',
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
outputs: [NodeConnectionType.Main],
credentials: [
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Webhook/Webhook.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class Webhook extends Node {
activationHint:
"Once you've finished building your workflow, run it without having to click this button by using the production webhook URL.",
},
// eslint-disable-next-line n8n-nodes-base/node-class-description-inputs-wrong-regular-node

inputs: [],
outputs: `={{(${configuredOutputs})($parameter)}}`,
credentials: credentialsProperty(this.authPropertyName),
Expand Down
1 change: 0 additions & 1 deletion packages/nodes-base/utils/descriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export const looseTypeValidationProperty: INodeProperties = {
};

export const appendAttributionOption: INodeProperties = {
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
displayName: 'Append n8n Attribution',
name: 'appendAttribution',
type: 'boolean',
Expand Down

0 comments on commit e29c1c2

Please sign in to comment.