mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
refactor(nodes-base): Apply lint rule cred-class-field-authenticate-type-assertion
(#4057)
👕 Apply `cred-class-field-authenticate-type-assertion`
This commit is contained in:
parent
d4f858db92
commit
d0c9120031
|
@ -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',
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -25,7 +25,7 @@ export class UrlScanIoApi implements ICredentialType {
|
|||
'API-KEY': '={{$credentials.apiKey}}',
|
||||
},
|
||||
},
|
||||
} as IAuthenticateGeneric;
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
|
|
Loading…
Reference in a new issue