Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.02 KB

cred-class-field-display-name-miscased.md

File metadata and controls

42 lines (30 loc) · 1.02 KB

cred-class-field-display-name-miscased

displayName field in credential class must be title cased, except for n8n API and E-goi 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 = 'myTestApi';
    displayName = 'My test API';
    documentationUrl = 'myTest';
}

✅ Example of correct code:

class MyTestApi implements ICredentialType {
    name = 'myTestApi';
    displayName = 'My Test API';
    documentationUrl = 'myTest';
}

class MyTestApi implements ICredentialType {
    name = 'myTestApi';
    displayName = 'n8n API';
    documentationUrl = 'myTest';
}

Links