diff --git a/.eslintrc.js b/.eslintrc.js index f0f022816d..7a367860fa 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -376,6 +376,7 @@ module.exports = { files: ['./packages/nodes-base/credentials/*.credentials.ts'], plugins: ['eslint-plugin-n8n-nodes-base'], rules: { + 'n8n-nodes-base/cred-class-field-authenticate-type-assertion': 'error', 'n8n-nodes-base/cred-class-field-display-name-missing-oauth2': 'error', 'n8n-nodes-base/cred-class-field-name-missing-oauth2': 'error', 'n8n-nodes-base/cred-class-field-name-unsuffixed': 'error', diff --git a/packages/nodes-base/credentials/KoBoToolboxApi.credentials.ts b/packages/nodes-base/credentials/KoBoToolboxApi.credentials.ts index 145989a429..38e54c4f91 100644 --- a/packages/nodes-base/credentials/KoBoToolboxApi.credentials.ts +++ b/packages/nodes-base/credentials/KoBoToolboxApi.credentials.ts @@ -25,14 +25,14 @@ export class KoBoToolboxApi implements ICredentialType { hint: 'You can get your API token at https://[api-root]/token/?format=json (for a logged in user)', }, ]; - authenticate = { + authenticate: IAuthenticateGeneric = { type: 'generic', properties: { headers: { Authorization: '=Token {{$credentials.token}}', }, }, - } as IAuthenticateGeneric; + }; test: ICredentialTestRequest = { request: { diff --git a/packages/nodes-base/credentials/UrlScanIoApi.credentials.ts b/packages/nodes-base/credentials/UrlScanIoApi.credentials.ts index b4076faf98..0ca8eb53f0 100644 --- a/packages/nodes-base/credentials/UrlScanIoApi.credentials.ts +++ b/packages/nodes-base/credentials/UrlScanIoApi.credentials.ts @@ -25,7 +25,7 @@ export class UrlScanIoApi implements ICredentialType { 'API-KEY': '={{$credentials.apiKey}}', }, }, - } as IAuthenticateGeneric; + }; test: ICredentialTestRequest = { request: {