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

@@ -113,7 +113,7 @@ export const historyHelper = mixins(debounceHelper, deviceSupportHelpers).extend
if (this.isNDVOpen && !event.shiftKey) {
const activeNode = this.ndvStore.activeNode;
if (activeNode) {
this.$telemetry.track(`User hit undo in NDV`, { node_type: activeNode.type });
this.$telemetry.track('User hit undo in NDV', { node_type: activeNode.type });
}
}
},

View File

@@ -22,7 +22,7 @@ export const newVersions = mixins(showMessage).extend({
const nextVersions = this.versionsStore.nextVersions;
if (currentVersion && currentVersion.hasSecurityIssue && nextVersions.length) {
const fixVersion = currentVersion.securityIssueFixVersion;
let message = `Please update to latest version.`;
let message = 'Please update to latest version.';
if (fixVersion) {
message = `Please update to version ${fixVersion} or higher.`;
}

View File

@@ -70,7 +70,7 @@ export const restApi = Vue.extend({
return makeRestApiRequest(self.rootStore.getRestApiContext, method, endpoint, data);
},
getActiveWorkflows: (): Promise<string[]> => {
return self.restApi().makeRestApiRequest('GET', `/active`);
return self.restApi().makeRestApiRequest('GET', '/active');
},
getActivationError: (id: string): Promise<IActivationError | undefined> => {
return self.restApi().makeRestApiRequest('GET', `/active/error/${id}`);
@@ -82,7 +82,7 @@ export const restApi = Vue.extend({
filter,
};
}
return self.restApi().makeRestApiRequest('GET', `/executions-current`, sendData);
return self.restApi().makeRestApiRequest('GET', '/executions-current', sendData);
},
stopCurrentExecution: (executionId: string): Promise<IExecutionsStopData> => {
return self
@@ -103,12 +103,12 @@ export const restApi = Vue.extend({
// Execute a workflow
runWorkflow: async (startRunData: IStartRunData): Promise<IExecutionPushResponse> => {
return self.restApi().makeRestApiRequest('POST', `/workflows/run`, startRunData);
return self.restApi().makeRestApiRequest('POST', '/workflows/run', startRunData);
},
// Creates a new workflow
createNewWorkflow: (sendData: IWorkflowDataUpdate): Promise<IWorkflowDb> => {
return self.restApi().makeRestApiRequest('POST', `/workflows`, sendData);
return self.restApi().makeRestApiRequest('POST', '/workflows', sendData);
},
// Updates an existing workflow
@@ -144,12 +144,12 @@ export const restApi = Vue.extend({
filter,
};
}
return self.restApi().makeRestApiRequest('GET', `/workflows`, sendData);
return self.restApi().makeRestApiRequest('GET', '/workflows', sendData);
},
// Returns a workflow from a given URL
getWorkflowFromUrl: (url: string): Promise<IWorkflowDb> => {
return self.restApi().makeRestApiRequest('GET', `/workflows/from-url`, { url });
return self.restApi().makeRestApiRequest('GET', '/workflows/from-url', { url });
},
// Returns the execution with the given name
@@ -160,7 +160,7 @@ export const restApi = Vue.extend({
// Deletes executions
deleteExecutions: (sendData: IExecutionDeleteFilter): Promise<void> => {
return self.restApi().makeRestApiRequest('POST', `/executions/delete`, sendData);
return self.restApi().makeRestApiRequest('POST', '/executions/delete', sendData);
},
// Returns the execution with the given name
@@ -192,12 +192,12 @@ export const restApi = Vue.extend({
};
}
return self.restApi().makeRestApiRequest('GET', `/executions`, sendData);
return self.restApi().makeRestApiRequest('GET', '/executions', sendData);
},
// Returns all the available timezones
getTimezones: (): Promise<IDataObject> => {
return self.restApi().makeRestApiRequest('GET', `/options/timezones`);
return self.restApi().makeRestApiRequest('GET', '/options/timezones');
},
// Binary data

View File

@@ -22,7 +22,7 @@ export const titleChange = Vue.extend({
},
$titleReset() {
document.title = `n8n - Workflow Automation`;
document.title = 'n8n - Workflow Automation';
},
},
});