mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -1106,6 +1106,7 @@ export class EditImage implements INodeType {
|
||||
const operator = operationData.operator as string;
|
||||
|
||||
const geometryString =
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
||||
(positionX >= 0 ? '+' : '') + positionX + (positionY >= 0 ? '+' : '') + positionY;
|
||||
|
||||
if (item.binary![operationData.dataPropertyNameComposite as string] === undefined) {
|
||||
@@ -1238,7 +1239,7 @@ export class EditImage implements INodeType {
|
||||
// Combine the lines to a single string
|
||||
const renderText = lines.join('\n');
|
||||
|
||||
const font = options.font || operationData.font;
|
||||
const font = options.font ?? operationData.font;
|
||||
|
||||
if (font && font !== 'default') {
|
||||
gmInstance = gmInstance!.font(font as string);
|
||||
@@ -1286,6 +1287,7 @@ export class EditImage implements INodeType {
|
||||
const fileName = newItem.binary![dataPropertyName].fileName;
|
||||
if (fileName?.includes('.')) {
|
||||
newItem.binary![dataPropertyName].fileName =
|
||||
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
||||
fileName.split('.').slice(0, -1).join('.') + '.' + options.format;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user