Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 882 Bytes

node-param-type-options-missing-from-password.md

File metadata and controls

39 lines (28 loc) · 882 Bytes

node-param-type-options-missing-from-password

typeOptions.password must be set to true in a Password node parameter, to obscure the password input.

📋 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: "Password",
	name: "password",
	type: "string",
	default: "",
};

✅ Example of correct code:

const test = {
	displayName: "Password",
	name: "password",
	type: "string",
	typeOptions: { password: true },
	default: "",
};

Links