refactor: Lint for no unneeded backticks (#5057) (no-changelog)

*  Create rule `no-unneeded-backticks`

* 👕 Enable rule

*  Run rule on `cli`

*  Run rule on `core`

*  Run rule on `workflow`

*  Rule rule on `design-system`

*  Run rule on `node-dev`

*  Run rule on `editor-ui`

*  Run rule on `nodes-base`
This commit is contained in:
Iván Ovejero
2022-12-29 12:20:43 +01:00
committed by GitHub
parent a7868ae77d
commit d9b98fc8be
239 changed files with 772 additions and 714 deletions

View File

@@ -4120,7 +4120,7 @@ export class Pipedrive implements INodeType {
qs.type = (qs.type as string[]).join(',');
}
endpoint = `/activities`;
endpoint = '/activities';
} else if (operation === 'update') {
// ----------------------------------
// activity:update
@@ -4198,7 +4198,7 @@ export class Pipedrive implements INodeType {
const filters = this.getNodeParameter('filters', i);
addAdditionalFields(qs, filters);
endpoint = `/deals`;
endpoint = '/deals';
} else if (operation === 'update') {
// ----------------------------------
// deal:update
@@ -4250,7 +4250,7 @@ export class Pipedrive implements INodeType {
qs.status = additionalFields.status as string;
}
endpoint = `/deals/search`;
endpoint = '/deals/search';
}
} else if (resource === 'dealActivity') {
if (operation === 'getAll') {
@@ -4432,7 +4432,7 @@ export class Pipedrive implements INodeType {
// ----------------------------------
requestMethod = 'GET';
endpoint = `/notes`;
endpoint = '/notes';
returnAll = this.getNodeParameter('returnAll', i);
if (!returnAll) {
@@ -4640,7 +4640,7 @@ export class Pipedrive implements INodeType {
qs.first_char = qs.first_char.substring(0, 1);
}
endpoint = `/organizations`;
endpoint = '/organizations';
} else if (operation === 'update') {
// ----------------------------------
// organization:update
@@ -4682,7 +4682,7 @@ export class Pipedrive implements INodeType {
qs.exact_match = additionalFields.exactMatch as boolean;
}
endpoint = `/organizations/search`;
endpoint = '/organizations/search';
}
} else if (resource === 'person') {
if (operation === 'create') {
@@ -4736,7 +4736,7 @@ export class Pipedrive implements INodeType {
qs.first_char = additionalFields.firstChar as string;
}
endpoint = `/persons`;
endpoint = '/persons';
} else if (operation === 'search') {
// ----------------------------------
// persons:search
@@ -4768,7 +4768,7 @@ export class Pipedrive implements INodeType {
qs.include_fields = additionalFields.includeFields as string;
}
endpoint = `/persons/search`;
endpoint = '/persons/search';
} else if (operation === 'update') {
// ----------------------------------
// person:update
@@ -4799,7 +4799,7 @@ export class Pipedrive implements INodeType {
qs.limit = this.getNodeParameter('limit', i);
}
endpoint = `/products`;
endpoint = '/products';
}
} else {
throw new NodeOperationError(this.getNode(), `The resource "${resource}" is not known!`, {

View File

@@ -222,7 +222,7 @@ export class PipedriveTrigger implements INodeType {
const eventObject = this.getNodeParameter('object') as string;
// Webhook got created before so check if it still exists
const endpoint = `/webhooks`;
const endpoint = '/webhooks';
const responseData = await pipedriveApiRequest.call(this, 'GET', endpoint, {});
@@ -250,7 +250,7 @@ export class PipedriveTrigger implements INodeType {
const eventAction = this.getNodeParameter('action') as string;
const eventObject = this.getNodeParameter('object') as string;
const endpoint = `/webhooks`;
const endpoint = '/webhooks';
const body = {
event_action: eventAction,