refactor(core): Update rule typescript-eslint/no-unused-vars to not error when variable starts with _ (#4523)

*  rule and fixes

*  clean up
This commit is contained in:
Michael Kret
2022-11-08 16:28:21 +02:00
committed by GitHub
parent ebf17e1827
commit 479644a499
260 changed files with 366 additions and 695 deletions

View File

@@ -1,14 +1,6 @@
import { IExecuteFunctions, IHookFunctions, ILoadOptionsFunctions } from 'n8n-core';
import { OptionsWithUri } from 'request';
import {
IDataObject,
IHttpRequestMethods,
IHttpRequestOptions,
NodeApiError,
NodeOperationError,
} from 'n8n-workflow';
import { IDataObject, IHttpRequestMethods, IHttpRequestOptions, NodeApiError } from 'n8n-workflow';
import { get } from 'lodash';
@@ -18,11 +10,9 @@ export async function customerIoApiRequest(
endpoint: string,
body: object,
baseApi?: string,
query?: IDataObject,
// tslint:disable-next-line:no-any
): Promise<any> {
_query?: IDataObject,
) {
const credentials = await this.getCredentials('customerIoApi');
query = query || {};
const options: IHttpRequestOptions = {
headers: {
'Content-Type': 'application/json',