mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
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:
@@ -7,23 +7,23 @@ export const operationFields: INodeProperties[] = [
|
||||
// shared
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Database',
|
||||
displayName: 'Database Name or ID',
|
||||
name: 'databaseId',
|
||||
type: 'options',
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'Database to operate on',
|
||||
description: 'Database to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getDatabaseIds',
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Table',
|
||||
displayName: 'Table Name or ID',
|
||||
name: 'tableId',
|
||||
type: 'options',
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'Table to operate on',
|
||||
description: 'Table to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
typeOptions: {
|
||||
loadOptionsDependsOn: [
|
||||
'databaseId',
|
||||
@@ -79,7 +79,7 @@ export const operationFields: INodeProperties[] = [
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Auto-map Input Data to Columns',
|
||||
name: 'Auto-Map Input Data to Columns',
|
||||
value: 'autoMapInputData',
|
||||
description: 'Use when node input properties match destination column names',
|
||||
},
|
||||
@@ -146,7 +146,7 @@ export const operationFields: INodeProperties[] = [
|
||||
name: 'fieldValues',
|
||||
values: [
|
||||
{
|
||||
displayName: 'Field ID',
|
||||
displayName: 'Field Name or ID',
|
||||
name: 'fieldId',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -255,11 +255,11 @@ export const operationFields: INodeProperties[] = [
|
||||
displayName: 'Field',
|
||||
values: [
|
||||
{
|
||||
displayName: 'Field',
|
||||
displayName: 'Field Name or ID',
|
||||
name: 'field',
|
||||
type: 'options',
|
||||
default: '',
|
||||
description: 'Field to compare',
|
||||
description: 'Field to compare. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
typeOptions: {
|
||||
loadOptionsDependsOn: [
|
||||
'tableId',
|
||||
@@ -273,16 +273,6 @@ export const operationFields: INodeProperties[] = [
|
||||
description: 'Operator to compare field and value with',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Equal',
|
||||
value: 'equal',
|
||||
description: 'Field is equal to value',
|
||||
},
|
||||
{
|
||||
name: 'Not Equal',
|
||||
value: 'not_equal',
|
||||
description: 'Field is not equal to value',
|
||||
},
|
||||
{
|
||||
name: 'Contains',
|
||||
value: 'contains',
|
||||
@@ -294,29 +284,9 @@ export const operationFields: INodeProperties[] = [
|
||||
description: 'Field does not contain value',
|
||||
},
|
||||
{
|
||||
name: 'Date Equal',
|
||||
value: 'date_equal',
|
||||
description: 'Field is date. Format: \'YYYY-MM-DD\'.',
|
||||
},
|
||||
{
|
||||
name: 'Date Not Equal',
|
||||
value: 'date_not_equal',
|
||||
description: 'Field is not date. Format: \'YYYY-MM-DD\'.',
|
||||
},
|
||||
{
|
||||
name: 'Date Equals Today',
|
||||
value: 'date_equals_today',
|
||||
description: 'Field is today. Format: string.',
|
||||
},
|
||||
{
|
||||
name: 'Date Equals Month',
|
||||
value: 'date_equals_month',
|
||||
description: 'Field in this month. Format: string.',
|
||||
},
|
||||
{
|
||||
name: 'Date Equals Year',
|
||||
value: 'date_equals_year',
|
||||
description: 'Field in this year. Format: string.',
|
||||
name: 'Date After Date',
|
||||
value: 'date_after',
|
||||
description: 'Field after this date. Format: \'YYYY-MM-DD\'.',
|
||||
},
|
||||
{
|
||||
name: 'Date Before Date',
|
||||
@@ -324,9 +294,34 @@ export const operationFields: INodeProperties[] = [
|
||||
description: 'Field before this date. Format: \'YYYY-MM-DD\'.',
|
||||
},
|
||||
{
|
||||
name: 'Date After Date',
|
||||
value: 'date_after',
|
||||
description: 'Field after this date. Format: \'YYYY-MM-DD\'.',
|
||||
name: 'Date Equal',
|
||||
value: 'date_equal',
|
||||
description: 'Field is date. Format: \'YYYY-MM-DD\'.',
|
||||
},
|
||||
{
|
||||
name: 'Date Equals Month',
|
||||
value: 'date_equals_month',
|
||||
description: 'Field in this month. Format: string.',
|
||||
},
|
||||
{
|
||||
name: 'Date Equals Today',
|
||||
value: 'date_equals_today',
|
||||
description: 'Field is today. Format: string.',
|
||||
},
|
||||
{
|
||||
name: 'Date Equals Year',
|
||||
value: 'date_equals_year',
|
||||
description: 'Field in this year. Format: string.',
|
||||
},
|
||||
{
|
||||
name: 'Date Not Equal',
|
||||
value: 'date_not_equal',
|
||||
description: 'Field is not date. Format: \'YYYY-MM-DD\'.',
|
||||
},
|
||||
{
|
||||
name: 'Equal',
|
||||
value: 'equal',
|
||||
description: 'Field is equal to value',
|
||||
},
|
||||
{
|
||||
name: 'Filename Contains',
|
||||
@@ -338,11 +333,6 @@ export const operationFields: INodeProperties[] = [
|
||||
value: 'higher_than',
|
||||
description: 'Field is higher than value',
|
||||
},
|
||||
{
|
||||
name: 'Lower Than',
|
||||
value: 'lower_than',
|
||||
description: 'Field is lower than value',
|
||||
},
|
||||
{
|
||||
name: 'Is Empty',
|
||||
value: 'empty',
|
||||
@@ -358,15 +348,25 @@ export const operationFields: INodeProperties[] = [
|
||||
value: 'boolean',
|
||||
description: 'Boolean field is true',
|
||||
},
|
||||
{
|
||||
name: 'Link Row Does Not Have',
|
||||
value: 'link_row_has_not',
|
||||
description: 'Field does not have link ID',
|
||||
},
|
||||
{
|
||||
name: 'Link Row Has',
|
||||
value: 'link_row_has',
|
||||
description: 'Field has link ID',
|
||||
},
|
||||
{
|
||||
name: 'Link Row Does Not Have',
|
||||
value: 'link_row_has_not',
|
||||
description: 'Field does not have link ID',
|
||||
name: 'Lower Than',
|
||||
value: 'lower_than',
|
||||
description: 'Field is lower than value',
|
||||
},
|
||||
{
|
||||
name: 'Not Equal',
|
||||
value: 'not_equal',
|
||||
description: 'Field is not equal to value',
|
||||
},
|
||||
{
|
||||
name: 'Single Select Equal',
|
||||
@@ -434,11 +434,11 @@ export const operationFields: INodeProperties[] = [
|
||||
displayName: 'Field',
|
||||
values: [
|
||||
{
|
||||
displayName: 'Field Name',
|
||||
displayName: 'Field Name or ID',
|
||||
name: 'field',
|
||||
type: 'options',
|
||||
default: '',
|
||||
description: 'Field name to sort by',
|
||||
description: 'Field name to sort by. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
typeOptions: {
|
||||
loadOptionsDependsOn: [
|
||||
'tableId',
|
||||
|
||||
Reference in New Issue
Block a user