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

@@ -182,7 +182,7 @@ export class MicrosoftDynamicsCrm implements INodeType {
qs.$select = 'accountid';
}
responseData = await microsoftApiRequest.call(this, 'POST', `/accounts`, body, qs);
responseData = await microsoftApiRequest.call(this, 'POST', '/accounts', body, qs);
}
if (operation === 'delete') {
@@ -230,13 +230,13 @@ export class MicrosoftDynamicsCrm implements INodeType {
this,
'value',
'GET',
`/accounts`,
'/accounts',
{},
qs,
);
} else {
qs.$top = this.getNodeParameter('limit', 0);
responseData = await microsoftApiRequest.call(this, 'GET', `/accounts`, {}, qs);
responseData = await microsoftApiRequest.call(this, 'GET', '/accounts', {}, qs);
responseData = responseData.value;
}
}

View File

@@ -91,7 +91,7 @@ export class MicrosoftExcel implements INodeType {
this,
'value',
'GET',
`/drive/root/search(q='.xlsx')`,
"/drive/root/search(q='.xlsx')",
{},
qs,
);
@@ -529,7 +529,7 @@ export class MicrosoftExcel implements INodeType {
this,
'value',
'GET',
`/drive/root/search(q='.xlsx')`,
"/drive/root/search(q='.xlsx')",
{},
qs,
);
@@ -538,7 +538,7 @@ export class MicrosoftExcel implements INodeType {
responseData = await microsoftApiRequest.call(
this,
'GET',
`/drive/root/search(q='.xlsx')`,
"/drive/root/search(q='.xlsx')",
{},
qs,
);

View File

@@ -71,7 +71,7 @@ export async function msGraphSecurityApiRequest(
}
export function tolerateDoubleQuotes(filterQueryParameter: string) {
return filterQueryParameter.replace(/"/g, `'`);
return filterQueryParameter.replace(/"/g, "'");
}
export function throwOnEmptyUpdate(this: IExecuteFunctions) {

View File

@@ -255,7 +255,7 @@ export class MicrosoftOutlook implements INodeType {
body.attachments = await binaryToAttachments.call(this, attachments, items, i);
}
responseData = await microsoftApiRequest.call(this, 'POST', `/messages`, body, {});
responseData = await microsoftApiRequest.call(this, 'POST', '/messages', body, {});
returnData.push(responseData);
} catch (error) {
@@ -539,7 +539,7 @@ export class MicrosoftOutlook implements INodeType {
saveToSentItems,
};
responseData = await microsoftApiRequest.call(this, 'POST', `/sendMail`, body, {});
responseData = await microsoftApiRequest.call(this, 'POST', '/sendMail', body, {});
returnData.push({ success: true });
} catch (error) {
if (this.continueOnFail()) {

View File

@@ -499,7 +499,7 @@ export class MicrosoftTeams implements INodeType {
responseData = await microsoftApiRequest.call(
this,
'POST',
`/v1.0/planner/tasks`,
'/v1.0/planner/tasks',
body,
);
}