refactor: Phase out TSLint in nodes-base (no-changelog) (#4798)

* 🔥 Remove TSLint scripts

* 🔥 Remove TSLint config

* 🔥 Remove TSLint exceptions

* 👕 Adjust lint config

* ✏️ Add story numbers
This commit is contained in:
Iván Ovejero
2022-12-02 15:25:21 +01:00
committed by GitHub
parent 632f573021
commit cfd32d2642
272 changed files with 367 additions and 926 deletions

View File

@@ -14,7 +14,6 @@ import _ from 'lodash';
export async function koBoToolboxApiRequest(
this: IExecuteFunctions | IWebhookFunctions | IHookFunctions | ILoadOptionsFunctions,
option: IDataObject = {},
// tslint:disable-next-line:no-any
): Promise<any> {
const credentials = await this.getCredentials('koBoToolboxApi');
@@ -84,7 +83,6 @@ const matchWildcard = (value: string, pattern: string): boolean => {
return regex.test(value);
};
// tslint:disable-next-line:no-any
const formatValue = (value: any, format: string): any => {
if (_.isString(value)) {
// Sanitize value
@@ -193,7 +191,7 @@ export async function downloadAttachments(
const credentials = await this.getCredentials('koBoToolboxApi');
// Look for attachment links - there can be more than one
const attachmentList = (submission['_attachments'] || submission['attachments']) as any[]; // tslint:disable-line:no-any
const attachmentList = (submission['_attachments'] || submission['attachments']) as any[];
if (attachmentList && attachmentList.length) {
for (const [index, attachment] of attachmentList.entries()) {
// look for the question name linked to this attachment
@@ -281,5 +279,5 @@ export async function loadForms(this: ILoadOptionsFunctions): Promise<INodePrope
scroll: true,
});
return responseData?.map((survey: any) => ({ name: survey.name, value: survey.uid })) || []; // tslint:disable-line:no-any
return responseData?.map((survey: any) => ({ name: survey.name, value: survey.uid })) || [];
}