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

@@ -48,7 +48,7 @@ export const attachmentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
{
displayName: 'Table Name',
displayName: 'Table Name or ID',
name: 'tableName',
type: 'options',
typeOptions: {

View File

@@ -82,7 +82,7 @@ export const incidentFields: INodeProperties[] = [
default: {},
options: [
{
displayName: 'Assigned To',
displayName: 'Asignee Name or ID',
name: 'assigned_to',
type: 'options',
typeOptions: {
@@ -93,10 +93,10 @@ export const incidentFields: INodeProperties[] = [
],
},
default: '',
description: 'Which user is the incident assigned to. Requires the selection of an assignment group.',
description: 'Which user is the incident assigned to. Requires the selection of an assignment group. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Assignment Group',
displayName: 'Assignment Group Name or ID',
name: 'assignment_group',
type: 'options',
typeOptions: {
@@ -104,10 +104,10 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getAssignmentGroups',
},
default: '',
description: 'The assignment group of the incident',
description: 'The assignment group of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Business Service',
displayName: 'Business Service Name or ID',
name: 'business_service',
type: 'options',
typeOptions: {
@@ -124,7 +124,7 @@ export const incidentFields: INodeProperties[] = [
description: 'The unique identifier of the caller of the incident',
},
{
displayName: 'Category',
displayName: 'Category Name or ID',
name: 'category',
type: 'options',
typeOptions: {
@@ -132,7 +132,7 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getIncidentCategories',
},
default: '',
description: 'The category of the incident',
description: 'The category of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Close Notes',
@@ -205,7 +205,7 @@ export const incidentFields: INodeProperties[] = [
description: 'The impact of the incident',
},
{
displayName: 'Resolution Code',
displayName: 'Resolution Code Name or ID',
name: 'close_code',
type: 'options',
typeOptions: {
@@ -213,10 +213,10 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getIncidentResolutionCodes',
},
default: '',
description: 'The resolution code of the incident, \'close_code\' in metadata',
description: 'The resolution code of the incident, \'close_code\' in metadata. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'State',
displayName: 'State Name or ID',
name: 'state',
type: 'options',
typeOptions: {
@@ -224,10 +224,10 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getIncidentStates',
},
default: '',
description: 'The state of the incident',
description: 'The state of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Subcategory',
displayName: 'Subcategory Name or ID',
name: 'subcategory',
type: 'options',
typeOptions: {
@@ -238,7 +238,7 @@ export const incidentFields: INodeProperties[] = [
],
},
default: '',
description: 'The subcategory of the incident',
description: 'The subcategory of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Urgency',
@@ -496,7 +496,7 @@ export const incidentFields: INodeProperties[] = [
default: {},
options: [
{
displayName: 'Assigned To',
displayName: 'Assigned To Name or ID',
name: 'assigned_to',
type: 'options',
typeOptions: {
@@ -507,10 +507,10 @@ export const incidentFields: INodeProperties[] = [
],
},
default: '',
description: 'Which user is the incident assigned to. Requires the selection of an assignment group.',
description: 'Which user is the incident assigned to. Requires the selection of an assignment group. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Assignment Group',
displayName: 'Assignment Group Name or ID',
name: 'assignment_group',
type: 'options',
typeOptions: {
@@ -518,10 +518,10 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getAssignmentGroups',
},
default: '',
description: 'The assignment group of the incident',
description: 'The assignment group of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Business Service',
displayName: 'Business Service Name or ID',
name: 'business_service',
type: 'options',
typeOptions: {
@@ -538,7 +538,7 @@ export const incidentFields: INodeProperties[] = [
description: 'The unique identifier of the caller of the incident',
},
{
displayName: 'Category',
displayName: 'Category Name or ID',
name: 'category',
type: 'options',
typeOptions: {
@@ -546,7 +546,7 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getIncidentCategories',
},
default: '',
description: 'The category of the incident',
description: 'The category of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Close Notes',
@@ -619,7 +619,7 @@ export const incidentFields: INodeProperties[] = [
description: 'The impact of the incident',
},
{
displayName: 'Resolution Code',
displayName: 'Resolution Code Name or ID',
name: 'close_code',
type: 'options',
typeOptions: {
@@ -628,10 +628,10 @@ export const incidentFields: INodeProperties[] = [
},
default: '',
// nodelinter-ignore-next-line
description: 'The resolution code of the incident. \'close_code\' in metadata.',
description: 'The resolution code of the incident. \'close_code\' in metadata. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'On Hold Reason',
displayName: 'On Hold Reason Name or ID',
name: 'hold_reason',
type: 'options',
typeOptions: {
@@ -639,10 +639,10 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getIncidentHoldReasons',
},
default: '',
description: 'The on hold reason for the incident. It applies if the state is <code>On Hold</code>',
description: 'The on hold reason for the incident. It applies if the state is <code>On Hold</code>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'State',
displayName: 'State Name or ID',
name: 'state',
type: 'options',
typeOptions: {
@@ -650,10 +650,10 @@ export const incidentFields: INodeProperties[] = [
loadOptionsMethod: 'getIncidentStates',
},
default: '',
description: 'The state of the incident',
description: 'The state of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Subcategory',
displayName: 'Subcategory Name or ID',
name: 'subcategory',
type: 'options',
typeOptions: {
@@ -664,7 +664,7 @@ export const incidentFields: INodeProperties[] = [
],
},
default: '',
description: 'The subcategory of the incident',
description: 'The subcategory of the incident. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Urgency',

View File

@@ -46,7 +46,7 @@ export const tableRecordFields: INodeProperties[] = [
/* tableRecord:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Table Name',
displayName: 'Table Name or ID',
name: 'tableName',
type: 'options',
typeOptions: {
@@ -146,7 +146,7 @@ export const tableRecordFields: INodeProperties[] = [
name: 'field',
values: [
{
displayName: 'Field Name',
displayName: 'Field Name or ID',
name: 'column',
type: 'options',
typeOptions: {
@@ -172,7 +172,7 @@ export const tableRecordFields: INodeProperties[] = [
/* tableRecord:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'Table Name',
displayName: 'Table Name or ID',
name: 'tableName',
type: 'options',
typeOptions: {
@@ -305,7 +305,7 @@ export const tableRecordFields: INodeProperties[] = [
/* tableRecord:get/delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'Table Name',
displayName: 'Table Name or ID',
name: 'tableName',
type: 'options',
typeOptions: {
@@ -324,7 +324,7 @@ export const tableRecordFields: INodeProperties[] = [
},
},
required: true,
description: 'Name of the table in which the record exists',
description: 'Name of the table in which the record exists. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Table Record ID',
@@ -411,7 +411,7 @@ export const tableRecordFields: INodeProperties[] = [
/* tableRecord:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'Table Name',
displayName: 'Table Name or ID',
name: 'tableName',
type: 'options',
typeOptions: {
@@ -529,7 +529,7 @@ export const tableRecordFields: INodeProperties[] = [
name: 'field',
values: [
{
displayName: 'Field Name',
displayName: 'Field Name or ID',
name: 'column',
type: 'options',
typeOptions: {