Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 846 Bytes

cred-class-field-display-name-missing-api.md

File metadata and controls

36 lines (25 loc) · 846 Bytes

cred-class-field-display-name-missing-api

displayName field in credential class must be end with API.

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

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

Examples

❌ Example of incorrect code:

class TestApi implements ICredentialType {
	name = "testApi";
	displayName = "Test";
	documentationUrl = "test";
}

✅ Example of correct code:

class TestApi implements ICredentialType {
	name = "testApi";
	displayName = "Test API";
	documentationUrl = "test";
}

Links