Skip to content

Latest commit

 

History

History
72 lines (55 loc) · 1.27 KB

node-param-display-name-miscased-id.md

File metadata and controls

72 lines (55 loc) · 1.27 KB

node-param-display-name-miscased-id

ID in displayName in node parameter must be fully uppercased. Applicable by extension to name in options-type or multi-options-type node parameter.

📋 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 = {
	displayName: "User Id",
	name: "userId",
	type: "string",
	default: "",
};

const test = {
	displayName: "User Ids",
	name: "userId",
	type: "string",
	default: "",
};

const test = {
	displayName: "User id",
	name: "userId",
	type: "string",
	default: "",
};

const test = {
	name: "User id",
	value: "userId",
};

✅ Example of correct code:

const test = {
	displayName: "User ID",
	name: "userId",
	type: "string",
	default: "",
};

const test = {
	name: "User ID",
	value: "userId",
};

const test = {
	name: "={{$responseItem.id}}",
	value: "={{$responseItem.id}}",
};

const test = {
	name: "User Identifier",
	value: "userId",
};

Links