mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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:
@@ -428,7 +428,7 @@ export class Jenkins implements INodeType {
|
||||
loadOptions: {
|
||||
async getJobs(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const returnData: INodePropertyOptions[] = [];
|
||||
const endpoint = `/api/json`;
|
||||
const endpoint = '/api/json';
|
||||
const { jobs } = await jenkinsApiRequest.call(this, 'GET', endpoint);
|
||||
for (const job of jobs) {
|
||||
returnData.push({
|
||||
@@ -530,7 +530,7 @@ export class Jenkins implements INodeType {
|
||||
from: job,
|
||||
};
|
||||
|
||||
const endpoint = `/createItem`;
|
||||
const endpoint = '/createItem';
|
||||
try {
|
||||
await jenkinsApiRequest.call(this, 'POST', endpoint, queryParams);
|
||||
responseData = { success: true };
|
||||
@@ -553,7 +553,7 @@ export class Jenkins implements INodeType {
|
||||
|
||||
const body = this.getNodeParameter('xml', i) as string;
|
||||
|
||||
const endpoint = `/createItem`;
|
||||
const endpoint = '/createItem';
|
||||
await jenkinsApiRequest.call(this, 'POST', endpoint, queryParams, body, {
|
||||
headers,
|
||||
json: false,
|
||||
@@ -573,17 +573,17 @@ export class Jenkins implements INodeType {
|
||||
};
|
||||
}
|
||||
|
||||
const endpoint = `/quietDown`;
|
||||
const endpoint = '/quietDown';
|
||||
await jenkinsApiRequest.call(this, 'POST', endpoint, queryParams);
|
||||
responseData = { success: true };
|
||||
}
|
||||
if (operation === 'cancelQuietDown') {
|
||||
const endpoint = `/cancelQuietDown`;
|
||||
const endpoint = '/cancelQuietDown';
|
||||
await jenkinsApiRequest.call(this, 'POST', endpoint);
|
||||
responseData = { success: true };
|
||||
}
|
||||
if (operation === 'restart') {
|
||||
const endpoint = `/restart`;
|
||||
const endpoint = '/restart';
|
||||
try {
|
||||
await jenkinsApiRequest.call(this, 'POST', endpoint);
|
||||
} catch (error) {
|
||||
@@ -595,7 +595,7 @@ export class Jenkins implements INodeType {
|
||||
}
|
||||
}
|
||||
if (operation === 'safeRestart') {
|
||||
const endpoint = `/safeRestart`;
|
||||
const endpoint = '/safeRestart';
|
||||
try {
|
||||
await jenkinsApiRequest.call(this, 'POST', endpoint);
|
||||
} catch (error) {
|
||||
@@ -607,12 +607,12 @@ export class Jenkins implements INodeType {
|
||||
}
|
||||
}
|
||||
if (operation === 'exit') {
|
||||
const endpoint = `/exit`;
|
||||
const endpoint = '/exit';
|
||||
await jenkinsApiRequest.call(this, 'POST', endpoint);
|
||||
responseData = { success: true };
|
||||
}
|
||||
if (operation === 'safeExit') {
|
||||
const endpoint = `/safeExit`;
|
||||
const endpoint = '/safeExit';
|
||||
await jenkinsApiRequest.call(this, 'POST', endpoint);
|
||||
responseData = { success: true };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user