From 889267ebb6be6a1a13c6c8bf6e3c0b1d14754cf8 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Wed, 28 Oct 2020 23:14:09 +0100 Subject: [PATCH] :shirt: Fix lint issue --- packages/editor-ui/vue.config.js | 3 +++ .../nodes/MailerLite/GenericFunctions.ts | 2 +- .../nodes-base/nodes/MailerLite/MailerLite.node.ts | 2 +- .../nodes/MailerLite/MailerLiteTrigger.node.ts | 2 +- .../nodes/MailerLite/SubscriberDescription.ts | 4 ++-- .../nodes/Salesforce/GenericFunctions.ts | 8 ++++---- packages/nodes-base/package.json | 14 +++++++------- 7 files changed, 19 insertions(+), 16 deletions(-) diff --git a/packages/editor-ui/vue.config.js b/packages/editor-ui/vue.config.js index cdcd8259f9..da25a421b2 100644 --- a/packages/editor-ui/vue.config.js +++ b/packages/editor-ui/vue.config.js @@ -19,6 +19,9 @@ module.exports = { ], }), ], + devServer: { + disableHostCheck: true, + }, }, css: { loaderOptions: { diff --git a/packages/nodes-base/nodes/MailerLite/GenericFunctions.ts b/packages/nodes-base/nodes/MailerLite/GenericFunctions.ts index cf9b7eada6..388a75c594 100644 --- a/packages/nodes-base/nodes/MailerLite/GenericFunctions.ts +++ b/packages/nodes-base/nodes/MailerLite/GenericFunctions.ts @@ -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; diff --git a/packages/nodes-base/nodes/MailerLite/MailerLite.node.ts b/packages/nodes-base/nodes/MailerLite/MailerLite.node.ts index 3b9e2fb7fb..f45e900a38 100644 --- a/packages/nodes-base/nodes/MailerLite/MailerLite.node.ts +++ b/packages/nodes-base/nodes/MailerLite/MailerLite.node.ts @@ -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, diff --git a/packages/nodes-base/nodes/MailerLite/MailerLiteTrigger.node.ts b/packages/nodes-base/nodes/MailerLite/MailerLiteTrigger.node.ts index e53a1867cb..998da6ce24 100644 --- a/packages/nodes-base/nodes/MailerLite/MailerLiteTrigger.node.ts +++ b/packages/nodes-base/nodes/MailerLite/MailerLiteTrigger.node.ts @@ -182,7 +182,7 @@ export class MailerLiteTrigger implements INodeType { return { workflowData: [ - this.helpers.returnJsonArray(events) + this.helpers.returnJsonArray(events), ], }; } diff --git a/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts b/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts index 1288dcfcb0..0405cf7400 100644 --- a/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts +++ b/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts @@ -57,8 +57,8 @@ export const subscriberFields = [ 'subscriber', ], operation: [ - 'create' - ] + 'create', + ], }, }, description: 'Email of new subscriber.', diff --git a/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts b/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts index 1c1064a2dd..8dd761acb9 100644 --- a/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts @@ -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 diff --git a/packages/nodes-base/package.json b/packages/nodes-base/package.json index 197a57e46f..b9876c75a9 100644 --- a/packages/nodes-base/package.json +++ b/packages/nodes-base/package.json @@ -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",