fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)

This commit is contained in:
Michael Kret
2023-02-28 05:39:43 +02:00
committed by GitHub
parent 3172ea376e
commit bb4db58819
560 changed files with 2227 additions and 1919 deletions

View File

@@ -98,7 +98,6 @@ export class WufooTrigger implements INodeType {
},
};
// @ts-ignore
webhookMethods = {
default: {
// No API endpoint to allow checking of existing webhooks.
@@ -154,7 +153,7 @@ export class WufooTrigger implements INodeType {
return {};
}
const fieldsObject = jsonParse<any>(req.body.FieldStructure, {
const fieldsObject = jsonParse<any>(req.body.FieldStructure as string, {
errorMessage: "Invalid JSON in request body field 'FieldStructure'",
});
@@ -209,10 +208,10 @@ export class WufooTrigger implements INodeType {
entryId: req.body.EntryId as number,
dateCreated: req.body.DateCreated as Date,
formId: req.body.FormId as string,
formStructure: jsonParse(req.body.FormStructure, {
formStructure: jsonParse(req.body.FormStructure as string, {
errorMessage: "Invalid JSON in request body field 'FormStructure'",
}),
fieldStructure: jsonParse(req.body.FieldStructure, {
fieldStructure: jsonParse(req.body.FieldStructure as string, {
errorMessage: "Invalid JSON in request body field 'FieldStructure'",
}),
entries,