Credential class name must be suffixed 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.
❌ Example of incorrect code:
class MyTest 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";
}