Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.09 KB

node-param-description-wrong-for-upsert.md

File metadata and controls

44 lines (32 loc) · 1.09 KB

node-param-description-wrong-for-upsert

description for Upsert node parameter must be Create a new record, or update the current one if it already exists (upsert). The resource name e.g. 'contact' is also allowed instead of 'record'.

📋 This rule is part of the plugin:n8n-nodes-base/nodes config.

🔧 Run ESLint with --fix option to autofix the issue flagged by this rule.

Examples

❌ Example of incorrect code:

const test = {
	name: "Upsert",
	value: "upsert",
	description: "Wrong",
};

✅ Example of correct code:

const test = {
	name: "Upsert",
	value: "upsert",
	description:
		"Create a new record, or update the current one if it already exists (upsert)",
};

const test = {
	name: "Upsert",
	value: "upsert",
	description:
		"Create a new contact, or update the current one if it already exists (upsert)",
};

Links