mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
@@ -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 })) || [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user