mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -46,8 +46,7 @@ export function adjustPutItem(putItemUi: PutItemUi) {
|
||||
type = 'BOOL';
|
||||
} else if (typeof value === 'object' && !Array.isArray(value) && value !== null) {
|
||||
type = 'M';
|
||||
// @ts-ignore
|
||||
} else if (isNaN(value)) {
|
||||
} else if (isNaN(Number(value))) {
|
||||
type = 'S';
|
||||
} else {
|
||||
type = 'N';
|
||||
@@ -64,6 +63,8 @@ export function simplify(item: IAttributeValue): IDataObject {
|
||||
|
||||
for (const [attribute, value] of Object.entries(item)) {
|
||||
const [type, content] = Object.entries(value)[0] as [AttributeValueType, string];
|
||||
//nedded as simplify is used in decodeItem
|
||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||
output[attribute] = decodeAttribute(type, content);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user