Skip to content

Latest commit

 

History

History
88 lines (70 loc) · 1.75 KB

node-param-description-miscased-url.md

File metadata and controls

88 lines (70 loc) · 1.75 KB

node-param-description-miscased-url

URL in description in node parameter must be fully uppercased. Applicable by extension to description in option in options-type and 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: "Operation",
	name: "operation",
	type: "string",
	default: "",
	description: "The url of the curly user",
};

const test = {
	displayName: "Operation",
	name: "operation",
	type: "string",
	default: "",
	description: "An avatar image url. note: the image url needs to be https.",
};

const test = {
	displayName: "Operation",
	name: "operation",
	type: "string",
	default: "",
	description: "The Url of the curly user",
};

const test = {
	displayName: "Operation",
	name: "operation",
	type: "string",
	default: "",
	description: "Url of the user",
};

const test = {
	name: "User ID",
	value: "userId",
	description: "The url of the curly user",
};

const test = {
	name: "User ID",
	value: "userId",
	description: "The Url of the curly user",
};

✅ Example of correct code:

const test = {
	displayName: "Operation",
	name: "operation",
	type: "string",
	default: "",
	description: "The URL of the user",
};

const test = {
	name: "User ID",
	value: "userId",
	description: "The URL of the user",
};

const test = {
	name: "User ID",
	value: "userId",
	description: "The cURL command",
};

Links