mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
ci: Fix linting on builds (no-changelog) (#5062)
add exceptions for the no-interpolation-in-regular-string rule
This commit is contained in:
committed by
GitHub
parent
0b47f9ce4e
commit
99e3eb634b
@@ -351,6 +351,7 @@ export class CrateDb implements INodeType {
|
|||||||
const where =
|
const where =
|
||||||
' WHERE ' +
|
' WHERE ' +
|
||||||
updateKeys
|
updateKeys
|
||||||
|
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
|
||||||
.map((updateKey) => pgp.as.name(updateKey) + ' = ${' + updateKey + '}')
|
.map((updateKey) => pgp.as.name(updateKey) + ' = ${' + updateKey + '}')
|
||||||
.join(' AND ');
|
.join(' AND ');
|
||||||
// updateKeyValue = item.json[updateKey] as string | number;
|
// updateKeyValue = item.json[updateKey] as string | number;
|
||||||
|
|||||||
@@ -439,6 +439,7 @@ export class JiraTrigger implements INodeType {
|
|||||||
|
|
||||||
if (additionalFields.includeFields) {
|
if (additionalFields.includeFields) {
|
||||||
for (const field of additionalFields.includeFields as string[]) {
|
for (const field of additionalFields.includeFields as string[]) {
|
||||||
|
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
|
||||||
parameters[field] = '${' + field + '}';
|
parameters[field] = '${' + field + '}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -504,6 +504,7 @@ export async function pgUpdate(
|
|||||||
} else {
|
} else {
|
||||||
const where =
|
const where =
|
||||||
' WHERE ' +
|
' WHERE ' +
|
||||||
|
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
|
||||||
updateKeys.map((entry) => pgp.as.name(entry.name) + ' = ${' + entry.prop + '}').join(' AND ');
|
updateKeys.map((entry) => pgp.as.name(entry.name) + ' = ${' + entry.prop + '}').join(' AND ');
|
||||||
if (mode === 'transaction') {
|
if (mode === 'transaction') {
|
||||||
return db.tx(async (t) => {
|
return db.tx(async (t) => {
|
||||||
@@ -625,6 +626,7 @@ export async function pgUpdateV2(
|
|||||||
} else {
|
} else {
|
||||||
const where =
|
const where =
|
||||||
' WHERE ' +
|
' WHERE ' +
|
||||||
|
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
|
||||||
updateKeys.map((entry) => pgp.as.name(entry.name) + ' = ${' + entry.prop + '}').join(' AND ');
|
updateKeys.map((entry) => pgp.as.name(entry.name) + ' = ${' + entry.prop + '}').join(' AND ');
|
||||||
if (mode === 'transaction') {
|
if (mode === 'transaction') {
|
||||||
return db.tx(async (t) => {
|
return db.tx(async (t) => {
|
||||||
|
|||||||
@@ -243,6 +243,7 @@ export class QuestDb implements INodeType {
|
|||||||
const returnFields = this.getNodeParameter('returnFields', 0) as string;
|
const returnFields = this.getNodeParameter('returnFields', 0) as string;
|
||||||
const table = this.getNodeParameter('table', 0) as string;
|
const table = this.getNodeParameter('table', 0) as string;
|
||||||
|
|
||||||
|
// eslint-disable-next-line n8n-local-rules/no-interpolation-in-regular-string
|
||||||
const insertData = await db.any('SELECT ${columns:name} from ${table:name}', {
|
const insertData = await db.any('SELECT ${columns:name} from ${table:name}', {
|
||||||
columns: returnFields
|
columns: returnFields
|
||||||
.split(',')
|
.split(',')
|
||||||
|
|||||||
Reference in New Issue
Block a user