mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Apply more eslint-plugin-n8n-nodes-base autofixable rules (#3243)
* ✏️ Alphabetize rules * 🔖 Update version * ⚡ Update lintfix command * ⚡ Run baseline lintfix * 📦 Update package-lock.json * 👕 Apply `node-param-description-untrimmed` (#3200) * Removing unneeded backticks (#3249) * 👕 Apply node-param-description-wrong-for-return-all (#3253) * 👕 Apply node-param-description-missing-limit (#3252) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-excess-final-period (#3250) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-unencoded-angle-brackets (#3256) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-url-missing-protocol (#3258) * 👕 Apply `node-param-description-miscased-id` (#3254) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-wrong-for-limit (#3257) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-wrong-for-ignore-ssl-issues (#3261) * 👕 Apply rule * ⚡ Restore lintfix script * ⚡ Restore lintfix script Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
This commit is contained in:
@@ -33,7 +33,7 @@ export class Xml implements INodeType {
|
||||
{
|
||||
name: 'JSON to XML',
|
||||
value: 'jsonToxml',
|
||||
description: 'Converts data from JSON to XML.',
|
||||
description: 'Converts data from JSON to XML',
|
||||
},
|
||||
{
|
||||
name: 'XML to JSON',
|
||||
@@ -42,7 +42,7 @@ export class Xml implements INodeType {
|
||||
},
|
||||
],
|
||||
default: 'xmlToJson',
|
||||
description: 'From and to what format the data should be converted.',
|
||||
description: 'From and to what format the data should be converted',
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
@@ -61,7 +61,7 @@ export class Xml implements INodeType {
|
||||
},
|
||||
default: 'data',
|
||||
required: true,
|
||||
description: 'Name of the property to which to contains the converted XML data.',
|
||||
description: 'Name of the property to which to contains the converted XML data',
|
||||
},
|
||||
{
|
||||
displayName: 'Options',
|
||||
@@ -82,42 +82,42 @@ export class Xml implements INodeType {
|
||||
name: 'allowSurrogateChars',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Allows using characters from the Unicode surrogate blocks.',
|
||||
description: 'Allows using characters from the Unicode surrogate blocks',
|
||||
},
|
||||
{
|
||||
displayName: 'Attribute Key',
|
||||
name: 'attrkey',
|
||||
type: 'string',
|
||||
default: '$',
|
||||
description: 'Prefix that is used to access the attributes.',
|
||||
description: 'Prefix that is used to access the attributes',
|
||||
},
|
||||
{
|
||||
displayName: 'cdata',
|
||||
name: 'cdata',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: ' wrap text nodes in <![CDATA[ ... ]]> instead of escaping when necessary. Does not add <![CDATA[ ... ]]> if it is not required.',
|
||||
description: 'wrap text nodes in <![CDATA[ ... ]]> instead of escaping when necessary. Does not add <![CDATA[ ... ]]> if it is not required.',
|
||||
},
|
||||
{
|
||||
displayName: 'Character Key',
|
||||
name: 'charkey',
|
||||
type: 'string',
|
||||
default: '_',
|
||||
description: 'Prefix that is used to access the character content.',
|
||||
description: 'Prefix that is used to access the character content',
|
||||
},
|
||||
{
|
||||
displayName: 'Headless',
|
||||
name: 'headless',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Omit the XML header.',
|
||||
description: 'Omit the XML header',
|
||||
},
|
||||
{
|
||||
displayName: 'Root Name',
|
||||
name: 'rootName',
|
||||
type: 'string',
|
||||
default: 'root',
|
||||
description: 'Root element name to be used.',
|
||||
description: 'Root element name to be used',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -140,7 +140,7 @@ export class Xml implements INodeType {
|
||||
},
|
||||
default: 'data',
|
||||
required: true,
|
||||
description: 'Name of the property which contains the XML data to convert.',
|
||||
description: 'Name of the property which contains the XML data to convert',
|
||||
},
|
||||
{
|
||||
displayName: 'Options',
|
||||
@@ -161,35 +161,35 @@ export class Xml implements INodeType {
|
||||
name: 'attrkey',
|
||||
type: 'string',
|
||||
default: '$',
|
||||
description: 'Prefix that is used to access the attributes.',
|
||||
description: 'Prefix that is used to access the attributes',
|
||||
},
|
||||
{
|
||||
displayName: 'Character Key',
|
||||
name: 'charkey',
|
||||
type: 'string',
|
||||
default: '_',
|
||||
description: 'Prefix that is used to access the character content.',
|
||||
description: 'Prefix that is used to access the character content',
|
||||
},
|
||||
{
|
||||
displayName: 'Explicit Array',
|
||||
name: 'explicitArray',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Always put child nodes in an array if true; otherwise an array is created only if there is more than one.',
|
||||
description: 'Always put child nodes in an array if true; otherwise an array is created only if there is more than one',
|
||||
},
|
||||
{
|
||||
displayName: 'Explicit Root',
|
||||
name: 'explicitRoot',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'Set this if you want to get the root node in the resulting object.',
|
||||
description: 'Set this if you want to get the root node in the resulting object',
|
||||
},
|
||||
{
|
||||
displayName: 'Ignore Attributes',
|
||||
name: 'ignoreAttrs',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Ignore all XML attributes and only create text nodes.',
|
||||
description: 'Ignore all XML attributes and only create text nodes',
|
||||
},
|
||||
{
|
||||
displayName: 'Merge Attributes',
|
||||
@@ -203,21 +203,21 @@ export class Xml implements INodeType {
|
||||
name: 'normalize',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Trim whitespaces inside text nodes.',
|
||||
description: 'Trim whitespaces inside text nodes',
|
||||
},
|
||||
{
|
||||
displayName: 'Normalize Tags',
|
||||
name: 'normalizeTags',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Normalize all tag names to lowercase.',
|
||||
description: 'Normalize all tag names to lowercase',
|
||||
},
|
||||
{
|
||||
displayName: 'Trim',
|
||||
name: 'trim',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Trim the whitespace at the beginning and end of text nodes.',
|
||||
description: 'Trim the whitespace at the beginning and end of text nodes',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user