mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
refactor(core): Remove linting exceptions in nodes-base (#4794)
* ⚡ enabled array-type * ⚡ await-thenable on * ⚡ ban-types on * ⚡ default-param-last on * ⚡ dot-notation on * ⚡ member-delimiter-style on * ⚡ no-duplicate-imports on * ⚡ no-empty-interface on * ⚡ no-floating-promises on * ⚡ no-for-in-array on * ⚡ no-invalid-void-type on * ⚡ no-loop-func on * ⚡ no-shadow on * ⚡ ban-ts-comment re enabled * ⚡ @typescript-eslint/lines-between-class-members on * address my own comment * @typescript-eslint/return-await on * @typescript-eslint/promise-function-async on * @typescript-eslint/no-unnecessary-boolean-literal-compare on * @typescript-eslint/no-unnecessary-type-assertion on * prefer-const on * @typescript-eslint/prefer-optional-chain on Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -209,7 +209,7 @@ export class UptimeRobot implements INodeType {
|
||||
if (operation === 'update') {
|
||||
body = {
|
||||
id: this.getNodeParameter('id', i) as string,
|
||||
...(this.getNodeParameter('updateFields', i) as IDataObject),
|
||||
...this.getNodeParameter('updateFields', i),
|
||||
};
|
||||
|
||||
responseData = await uptimeRobotApiRequest.call(this, 'POST', '/editMonitor', body);
|
||||
@@ -253,7 +253,7 @@ export class UptimeRobot implements INodeType {
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
body = {
|
||||
...(this.getNodeParameter('filters', i) as IDataObject),
|
||||
...this.getNodeParameter('filters', i),
|
||||
};
|
||||
|
||||
if (!returnAll) {
|
||||
@@ -271,7 +271,7 @@ export class UptimeRobot implements INodeType {
|
||||
if (operation === 'update') {
|
||||
body = {
|
||||
id: this.getNodeParameter('id', i) as string,
|
||||
...(this.getNodeParameter('updateFields', i) as IDataObject),
|
||||
...this.getNodeParameter('updateFields', i),
|
||||
};
|
||||
|
||||
responseData = await uptimeRobotApiRequest.call(
|
||||
@@ -301,10 +301,10 @@ export class UptimeRobot implements INodeType {
|
||||
};
|
||||
|
||||
if (type === 3) {
|
||||
body['value'] = this.getNodeParameter('weekDay', i) as number;
|
||||
body.value = this.getNodeParameter('weekDay', i) as number;
|
||||
}
|
||||
if (type === 4) {
|
||||
body['value'] = this.getNodeParameter('monthDay', i) as number;
|
||||
body.value = this.getNodeParameter('monthDay', i) as number;
|
||||
}
|
||||
|
||||
responseData = await uptimeRobotApiRequest.call(this, 'POST', '/newMWindow', body);
|
||||
@@ -330,7 +330,7 @@ export class UptimeRobot implements INodeType {
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
body = {
|
||||
...(this.getNodeParameter('filters', i) as IDataObject),
|
||||
...this.getNodeParameter('filters', i),
|
||||
};
|
||||
|
||||
if (!returnAll) {
|
||||
@@ -344,7 +344,7 @@ export class UptimeRobot implements INodeType {
|
||||
body = {
|
||||
id: this.getNodeParameter('id', i) as string,
|
||||
duration: this.getNodeParameter('duration', i) as string,
|
||||
...(this.getNodeParameter('updateFields', i) as IDataObject),
|
||||
...this.getNodeParameter('updateFields', i),
|
||||
};
|
||||
|
||||
if (body.type === 1 && body.start_time) {
|
||||
@@ -354,11 +354,11 @@ export class UptimeRobot implements INodeType {
|
||||
}
|
||||
|
||||
if (body.type === 3) {
|
||||
body['value'] = body.weekDay;
|
||||
body.value = body.weekDay;
|
||||
delete body.weekDay;
|
||||
}
|
||||
if (body.type === 4) {
|
||||
body['value'] = body.monthDay;
|
||||
body.value = body.monthDay;
|
||||
delete body.monthDay;
|
||||
}
|
||||
responseData = await uptimeRobotApiRequest.call(this, 'POST', '/editMWindow', body);
|
||||
@@ -370,7 +370,7 @@ export class UptimeRobot implements INodeType {
|
||||
body = {
|
||||
friendly_name: this.getNodeParameter('friendlyName', i) as string,
|
||||
monitors: this.getNodeParameter('monitors', i) as string,
|
||||
...(this.getNodeParameter('additionalFields', i) as IDataObject),
|
||||
...this.getNodeParameter('additionalFields', i),
|
||||
};
|
||||
|
||||
responseData = await uptimeRobotApiRequest.call(this, 'POST', '/newPSP', body);
|
||||
@@ -394,7 +394,7 @@ export class UptimeRobot implements INodeType {
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
|
||||
body = {
|
||||
...(this.getNodeParameter('filters', i) as IDataObject),
|
||||
...this.getNodeParameter('filters', i),
|
||||
};
|
||||
|
||||
if (!returnAll) {
|
||||
@@ -407,7 +407,7 @@ export class UptimeRobot implements INodeType {
|
||||
if (operation === 'update') {
|
||||
body = {
|
||||
id: this.getNodeParameter('id', i) as string,
|
||||
...(this.getNodeParameter('updateFields', i) as IDataObject),
|
||||
...this.getNodeParameter('updateFields', i),
|
||||
};
|
||||
responseData = await uptimeRobotApiRequest.call(this, 'POST', '/editPSP', body);
|
||||
responseData = responseData.psp;
|
||||
|
||||
Reference in New Issue
Block a user