1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-20 01:19:07 +03:00

👕 Fix lint issue

This commit is contained in:
Jan Oberhauser 2020-10-28 23:14:09 +01:00
parent 0b1688caf4
commit 889267ebb6
7 changed files with 19 additions and 16 deletions

View File

@ -19,6 +19,9 @@ module.exports = {
],
}),
],
devServer: {
disableHostCheck: true,
},
},
css: {
loaderOptions: {

View File

@ -40,7 +40,7 @@ export async function mailerliteApiRequest(this: IExecuteFunctions | IExecuteSin
// Try to return the error prettier
throw new Error(
`Mailer Lite error response [${error.statusCode}]: ${message}`
`Mailer Lite error response [${error.statusCode}]: ${message}`,
);
}
throw error;

View File

@ -54,7 +54,7 @@ export class MailerLite implements INodeType {
},
],
default: 'subscriber',
description: 'The resource to operate on.'
description: 'The resource to operate on.',
},
...subscriberOperations,
...subscriberFields,

View File

@ -182,7 +182,7 @@ export class MailerLiteTrigger implements INodeType {
return {
workflowData: [
this.helpers.returnJsonArray(events)
this.helpers.returnJsonArray(events),
],
};
}

View File

@ -57,8 +57,8 @@ export const subscriberFields = [
'subscriber',
],
operation: [
'create'
]
'create',
],
},
},
description: 'Email of new subscriber.',

View File

@ -82,7 +82,7 @@ export function sortOptions(options: INodePropertyOptions[]): void {
});
}
function getOptions(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: string, endpoint: string, body: any, qs: IDataObject, instanceUrl: string): OptionsWithUri {
function getOptions(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: string, endpoint: string, body: any, qs: IDataObject, instanceUrl: string): OptionsWithUri { // tslint:disable-line:no-any
const options: OptionsWithUri = {
headers: {
'Content-Type': 'application/json',
@ -91,7 +91,7 @@ function getOptions(this: IExecuteFunctions | IExecuteSingleFunctions | ILoadOpt
body: method === 'GET' ? undefined : body,
qs,
uri: `${instanceUrl}/services/data/v39.0${endpoint}`,
json: true
json: true,
};
//@ts-ignore
@ -115,7 +115,7 @@ function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoa
header: {
'alg': 'RS256',
},
}
},
);
const options: OptionsWithUri = {
@ -128,7 +128,7 @@ function getAccessToken(this: IExecuteFunctions | IExecuteSingleFunctions | ILoa
assertion: signature,
},
uri: `${authUrl}/services/oauth2/token`,
json: true
json: true,
};
//@ts-ignore

View File

@ -150,24 +150,24 @@
"dist/credentials/Redis.credentials.js",
"dist/credentials/RocketchatApi.credentials.js",
"dist/credentials/RundeckApi.credentials.js",
"dist/credentials/ShopifyApi.credentials.js",
"dist/credentials/SalesforceOAuth2Api.credentials.js",
"dist/credentials/SalesforceJwtApi.credentials.js",
"dist/credentials/SalesforceOAuth2Api.credentials.js",
"dist/credentials/SalesmateApi.credentials.js",
"dist/credentials/SegmentApi.credentials.js",
"dist/credentials/SendyApi.credentials.js",
"dist/credentials/SentryIoApi.credentials.js",
"dist/credentials/SentryIoServerApi.credentials.js",
"dist/credentials/SentryIoOAuth2Api.credentials.js",
"dist/credentials/ShopifyApi.credentials.js",
"dist/credentials/Signl4Api.credentials.js",
"dist/credentials/SlackApi.credentials.js",
"dist/credentials/SlackOAuth2Api.credentials.js",
"dist/credentials/Sms77Api.credentials.js",
"dist/credentials/Smtp.credentials.js",
"dist/credentials/SpotifyOAuth2Api.credentials.js",
"dist/credentials/StravaOAuth2Api.credentials.js",
"dist/credentials/StripeApi.credentials.js",
"dist/credentials/SalesmateApi.credentials.js",
"dist/credentials/SegmentApi.credentials.js",
"dist/credentials/SendyApi.credentials.js",
"dist/credentials/Sftp.credentials.js",
"dist/credentials/Signl4Api.credentials.js",
"dist/credentials/SpotifyOAuth2Api.credentials.js",
"dist/credentials/SurveyMonkeyApi.credentials.js",
"dist/credentials/SurveyMonkeyOAuth2Api.credentials.js",
"dist/credentials/TaigaCloudApi.credentials.js",