refactor: Apply more eslint-plugin-n8n-nodes-base autofixable rules (#3432)

*  Update `lintfix` script

* 👕 Remove unneeded lint exceptions

* 👕 Run baseline `lintfix`

* 👕 Apply `node-param-description-miscased-url` (#3441)

* 👕 Apply `rule node-param-placeholder-miscased-id` (#3443)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-option-name-wrong-for-upsert` (#3446)

* 👕 Apply `node-param-min-value-wrong-for-limit` (#3442)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* Apply `node-param-display-name-wrong-for-dynamic-options` (#3454)

* 🔨 fix

*  Fix `Assigned To` fields

Co-authored-by: Michael Kret <michael.k@radency.com>

* 👕 Apply `rule node-param-default-wrong-for-number` (#3453)

* 👕 Apply `node-param-default-wrong-for-string` (#3452)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* Apply `node-param-display-name-miscased` (#3449)

* 🔨 fix

* 🔨 exceptions

*  review fixes

* 👕 Apply `node-param-description-lowercase-first-char` (#3451)

*  fix

*  review fixes

*  fix

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-description-wrong-for-dynamic-options` (#3456)

* Rule working as intended

* Add rule

* 🔥 Remove repetitions

* 👕 Add exceptions

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Small fix for `node-param-description-wrong-for-dynamic-options`

* 👕 Apply `node-param-default-wrong-for-fixed-collection` (#3460)

* 👕 Apply `node-param-description-line-break-html-tag` (#3462)

* 👕 Run baseline `lintfix`

* 👕 Apply `node-param-options-type-unsorted-items` (#3459)

*  fix

* 🔨 exceptions

* Add exception for Salesmate and Zoom

Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

*  Restore `lintfix` command

Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
This commit is contained in:
Iván Ovejero
2022-06-03 19:23:49 +02:00
committed by GitHub
parent 58ecadf53c
commit 70ae90fa3c
501 changed files with 4668 additions and 4555 deletions

View File

@@ -57,7 +57,7 @@ export const customObjectFields: INodeProperties[] = [
/* customObject:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Custom Object',
displayName: 'Custom Object Name or ID',
name: 'customObject',
type: 'options',
typeOptions: {
@@ -76,9 +76,10 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'Name of the custom object',
description: 'Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName: 'Match Against',
name: 'externalId',
type: 'options',
@@ -100,7 +101,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'The field to check to see if the object already exists',
description: 'The field to check to see if the object already exists. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value to Match',
@@ -147,7 +148,7 @@ export const customObjectFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
@@ -157,7 +158,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
default: '',
description: 'The ID of the field',
description: 'The ID of the field. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -175,7 +176,7 @@ export const customObjectFields: INodeProperties[] = [
/* customObject:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'Custom Object',
displayName: 'Custom Object Name or ID',
name: 'customObject',
type: 'options',
typeOptions: {
@@ -193,7 +194,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'Name of the custom object',
description: 'Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Record ID',
@@ -239,7 +240,7 @@ export const customObjectFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
@@ -249,7 +250,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
default: '',
description: 'The ID of the field',
description: 'The ID of the field. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -267,7 +268,7 @@ export const customObjectFields: INodeProperties[] = [
/* customObject:get */
/* -------------------------------------------------------------------------- */
{
displayName: 'Custom Object',
displayName: 'Custom Object Name or ID',
name: 'customObject',
type: 'options',
typeOptions: {
@@ -285,7 +286,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'Name of the custom object',
description: 'Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Record ID',
@@ -310,7 +311,7 @@ export const customObjectFields: INodeProperties[] = [
/* customObject:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'Custom Object',
displayName: 'Custom Object Name or ID',
name: 'customObject',
type: 'options',
typeOptions: {
@@ -328,7 +329,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'Name of the custom object',
description: 'Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Record ID',
@@ -353,7 +354,7 @@ export const customObjectFields: INodeProperties[] = [
/* customObject:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'Custom Object',
displayName: 'Custom Object Name or ID',
name: 'customObject',
type: 'options',
typeOptions: {
@@ -371,7 +372,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'Name of the custom object',
description: 'Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Return All',
@@ -447,7 +448,7 @@ export const customObjectFields: INodeProperties[] = [
displayName: 'Condition',
values: [
{
displayName: 'Field',
displayName: 'Field Name or ID',
name: 'field',
type: 'options',
typeOptions: {
@@ -457,7 +458,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
default: '',
description: 'For date, number, or boolean, please use expressions',
description: 'For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-operation-without-no-data-expression
{
@@ -465,6 +466,14 @@ export const customObjectFields: INodeProperties[] = [
name: 'operation',
type: 'options',
options: [
{
name: '<',
value: '<',
},
{
name: '<=',
value: '<=',
},
{
name: '=',
value: 'equal',
@@ -473,18 +482,10 @@ export const customObjectFields: INodeProperties[] = [
name: '>',
value: '>',
},
{
name: '<',
value: '<',
},
{
name: '>=',
value: '>=',
},
{
name: '<=',
value: '<=',
},
],
default: 'equal',
},
@@ -532,7 +533,7 @@ export const customObjectFields: INodeProperties[] = [
placeholder: 'Add Field',
options: [
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {
@@ -563,7 +564,7 @@ export const customObjectFields: INodeProperties[] = [
placeholder: 'Add Field',
options: [
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {