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:
Iván Ovejero
2022-05-06 23:01:25 +02:00
committed by GitHub
parent 1ef10dd23f
commit 63b6c9f128
689 changed files with 6828 additions and 6935 deletions

View File

@@ -44,7 +44,7 @@ export const attendanceFields: INodeProperties[] = [
{
displayName: 'Person ID',
name: 'personId',
description: 'ID of the person to create an attendance for.',
description: 'ID of the person to create an attendance for',
type: 'string',
default: '',
required: true,
@@ -62,7 +62,7 @@ export const attendanceFields: INodeProperties[] = [
{
displayName: 'Event ID',
name: 'eventId',
description: 'ID of the event to create an attendance for.',
description: 'ID of the event to create an attendance for',
type: 'string',
default: '',
required: true,
@@ -85,7 +85,7 @@ export const attendanceFields: INodeProperties[] = [
{
displayName: 'Event ID',
name: 'eventId',
description: 'ID of the event whose attendance to retrieve.',
description: 'ID of the event whose attendance to retrieve',
type: 'string',
default: '',
required: true,
@@ -103,7 +103,7 @@ export const attendanceFields: INodeProperties[] = [
{
displayName: 'Attendance ID',
name: 'attendanceId',
description: 'ID of the attendance to retrieve.',
description: 'ID of the attendance to retrieve',
type: 'string',
default: '',
required: true,
@@ -126,7 +126,7 @@ export const attendanceFields: INodeProperties[] = [
{
displayName: 'Event ID',
name: 'eventId',
description: 'ID of the event to create an attendance for.',
description: 'ID of the event to create an attendance for',
type: 'string',
default: '',
required: true,
@@ -146,7 +146,7 @@ export const attendanceFields: INodeProperties[] = [
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Return all results.',
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
@@ -163,7 +163,7 @@ export const attendanceFields: INodeProperties[] = [
name: 'limit',
type: 'number',
default: 50,
description: 'The number of results to return.',
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},

View File

@@ -45,7 +45,7 @@ export const eventFields: INodeProperties[] = [
{
displayName: 'Origin System',
name: 'originSystem',
description: 'Source where the event originated.',
description: 'Source where the event originated',
type: 'string',
required: true,
default: '',
@@ -63,7 +63,7 @@ export const eventFields: INodeProperties[] = [
{
displayName: 'Title',
name: 'title',
description: 'Title of the event to create.',
description: 'Title of the event to create',
type: 'string',
required: true,
default: '',
@@ -104,7 +104,7 @@ export const eventFields: INodeProperties[] = [
{
displayName: 'Event ID',
name: 'eventId',
description: 'ID of the event to retrieve.',
description: 'ID of the event to retrieve',
type: 'string',
default: '',
required: true,
@@ -129,7 +129,7 @@ export const eventFields: INodeProperties[] = [
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Return all results.',
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
@@ -146,7 +146,7 @@ export const eventFields: INodeProperties[] = [
name: 'limit',
type: 'number',
default: 50,
description: 'The number of results to return.',
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},

View File

@@ -53,7 +53,7 @@ export const personFields: INodeProperties[] = [
type: 'fixedCollection',
default: {},
placeholder: 'Add Email Address Field',
description: 'Persons email addresses.',
description: 'Persons email addresses',
displayOptions: {
show: {
resource: [
@@ -74,21 +74,21 @@ export const personFields: INodeProperties[] = [
name: 'address',
type: 'string',
default: '',
description: 'Person\'s email address.',
description: 'Person\'s email address',
},
{
displayName: 'Primary',
name: 'primary',
type: 'hidden',
default: true,
description: 'Whether this is the person\'s primary email address.',
description: 'Whether this is the person\'s primary email address',
},
{
displayName: 'Status',
name: 'status',
type: 'options',
default: 'subscribed',
description: 'Subscription status of this email address.',
description: 'Subscription status of this email address',
options: [
{
name: 'Bouncing',
@@ -145,7 +145,7 @@ export const personFields: INodeProperties[] = [
{
displayName: 'Person ID',
name: 'personId',
description: 'ID of the person to retrieve.',
description: 'ID of the person to retrieve',
type: 'string',
required: true,
default: '',
@@ -170,7 +170,7 @@ export const personFields: INodeProperties[] = [
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Return all results.',
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
@@ -187,7 +187,7 @@ export const personFields: INodeProperties[] = [
name: 'limit',
type: 'number',
default: 25,
description: 'The number of results to return.',
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
maxValue: 25,
@@ -214,7 +214,7 @@ export const personFields: INodeProperties[] = [
{
displayName: 'Person ID',
name: 'personId',
description: 'ID of the person to update.',
description: 'ID of the person to update',
type: 'string',
required: true,
default: '',

View File

@@ -36,7 +36,7 @@ export const personTagFields: INodeProperties[] = [
{
displayName: 'Tag ID',
name: 'tagId',
description: 'ID of the tag to add.',
description: 'ID of the tag to add',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTags',
@@ -57,7 +57,7 @@ export const personTagFields: INodeProperties[] = [
{
displayName: 'Person ID',
name: 'personId',
description: 'ID of the person to add the tag to.',
description: 'ID of the person to add the tag to',
type: 'string',
default: '',
required: true,
@@ -79,7 +79,7 @@ export const personTagFields: INodeProperties[] = [
{
displayName: 'Tag ID',
name: 'tagId',
description: 'ID of the tag whose tagging to delete.',
description: 'ID of the tag whose tagging to delete',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTags',
@@ -100,7 +100,7 @@ export const personTagFields: INodeProperties[] = [
{
displayName: 'Tagging ID',
name: 'taggingId',
description: 'ID of the tagging to remove.',
description: 'ID of the tagging to remove',
type: 'options',
typeOptions: {
loadOptionsDependsOn: [

View File

@@ -49,7 +49,7 @@ export const petitionFields: INodeProperties[] = [
{
displayName: 'Origin System',
name: 'originSystem',
description: 'Source where the petition originated.',
description: 'Source where the petition originated',
type: 'string',
required: true,
default: '',
@@ -67,7 +67,7 @@ export const petitionFields: INodeProperties[] = [
{
displayName: 'Title',
name: 'title',
description: 'Title of the petition to create.',
description: 'Title of the petition to create',
type: 'string',
required: true,
default: '',
@@ -108,7 +108,7 @@ export const petitionFields: INodeProperties[] = [
{
displayName: 'Petition ID',
name: 'petitionId',
description: 'ID of the petition to retrieve.',
description: 'ID of the petition to retrieve',
type: 'string',
default: '',
required: true,
@@ -133,7 +133,7 @@ export const petitionFields: INodeProperties[] = [
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Return all results.',
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
@@ -150,7 +150,7 @@ export const petitionFields: INodeProperties[] = [
name: 'limit',
type: 'number',
default: 50,
description: 'The number of results to return.',
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
@@ -176,7 +176,7 @@ export const petitionFields: INodeProperties[] = [
{
displayName: 'Petition ID',
name: 'petitionId',
description: 'ID of the petition to update.',
description: 'ID of the petition to update',
type: 'string',
default: '',
required: true,

View File

@@ -80,14 +80,14 @@ const postalAddressesFields: INodeProperties[] = [
name: 'primary',
type: 'boolean',
default: false,
description: 'Whether this is the person\'s primary address.',
description: 'Whether this is the person\'s primary address',
},
{
displayName: 'Address Line',
name: 'address_lines',
type: 'string', // The Action Network API expects a string array but ignores any string beyond the first, so this input field is simplified to string.
default: '',
description: 'Line for a person\'s address.',
description: 'Line for a person\'s address',
},
{
displayName: 'Locality',
@@ -101,14 +101,14 @@ const postalAddressesFields: INodeProperties[] = [
name: 'region',
type: 'string',
default: '',
description: 'State or subdivision code per ISO 3166-2.',
description: 'State or subdivision code per ISO 3166-2',
},
{
displayName: 'Postal Code',
name: 'postal_code',
type: 'string',
default: '',
description: 'Region specific postal code, such as ZIP code.',
description: 'Region specific postal code, such as ZIP code',
},
{
displayName: 'Country',
@@ -122,7 +122,7 @@ const postalAddressesFields: INodeProperties[] = [
name: 'language',
type: 'string',
default: '',
description: 'Language in which the address is recorded, per ISO 639.',
description: 'Language in which the address is recorded, per ISO 639',
},
{
displayName: 'Location',
@@ -139,14 +139,14 @@ const postalAddressesFields: INodeProperties[] = [
name: 'latitude',
type: 'string',
default: '',
description: 'Latitude of the location of the address.',
description: 'Latitude of the location of the address',
},
{
displayName: 'Longitude',
name: 'longitude',
type: 'string',
default: '',
description: 'Longitude of the location of the address.',
description: 'Longitude of the location of the address',
},
],
},
@@ -160,7 +160,7 @@ export const eventAdditionalFieldsOptions: INodeProperties['options'] = [
name: 'browser_url',
type: 'string',
default: '',
description: 'URL to this events page on the Action Network or a third party.',
description: 'URL to this events page on the Action Network or a third party',
},
{
displayName: 'Description',
@@ -174,14 +174,14 @@ export const eventAdditionalFieldsOptions: INodeProperties['options'] = [
name: 'end_date',
type: 'dateTime',
default: '',
description: 'End date and time of the event.',
description: 'End date and time of the event',
},
{
displayName: 'Featured Image URL',
name: 'featured_image_url',
type: 'string',
default: '',
description: 'URL to this events featured image on the Action Network.',
description: 'URL to this events featured image on the Action Network',
},
{
displayName: 'Instructions',
@@ -214,14 +214,14 @@ export const eventAdditionalFieldsOptions: INodeProperties['options'] = [
name: 'name',
type: 'string',
default: '',
description: 'Internal (not public) title of the event.',
description: 'Internal (not public) title of the event',
},
{
displayName: 'Start Date',
name: 'start_date',
type: 'dateTime',
default: '',
description: 'Start date and time of the event.',
description: 'Start date and time of the event',
},
];
@@ -231,14 +231,14 @@ export const personAdditionalFieldsOptions: INodeProperties['options'] = [
name: 'family_name',
type: 'string',
default: '',
description: 'Persons last name.',
description: 'Persons last name',
},
{
displayName: 'Given Name',
name: 'given_name',
type: 'string',
default: '',
description: 'Persons first name.',
description: 'Persons first name',
},
{
displayName: 'Language Spoken',
@@ -265,21 +265,21 @@ export const personAdditionalFieldsOptions: INodeProperties['options'] = [
name: 'number',
type: 'string',
default: '',
description: 'Person\'s mobile number, in international format without the plus sign.',
description: 'Person\'s mobile number, in international format without the plus sign',
},
{
displayName: 'Primary',
name: 'primary',
type: 'hidden',
default: true,
description: 'Whether this is the person\'s primary phone number.',
description: 'Whether this is the person\'s primary phone number',
},
{
displayName: 'Status',
name: 'status',
type: 'options',
default: 'subscribed',
description: 'Subscription status of this number.',
description: 'Subscription status of this number',
options: [
{
name: 'Bouncing',
@@ -329,35 +329,35 @@ export const petitionAdditionalFieldsOptions: INodeProperties[] = [
name: 'browser_url',
type: 'string',
default: '',
description: 'URL to this petitions page on the Action Network or a third party.',
description: 'URL to this petitions page on the Action Network or a third party',
},
{
displayName: 'Featured Image URL',
name: 'featured_image_url',
type: 'string',
default: '',
description: 'URL to this actions featured image on the Action Network.',
description: 'URL to this actions featured image on the Action Network',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Internal (not public) title of the petition.',
description: 'Internal (not public) title of the petition',
},
{
displayName: 'Petition Text',
name: 'petition_text',
type: 'string',
default: '',
description: 'Text of the letter to the petitions target.',
description: 'Text of the letter to the petitions target',
},
{
displayName: 'Targets',
name: 'target',
type: 'string',
default: '',
description: 'Comma-separated names of targets for this petition.',
description: 'Comma-separated names of targets for this petition',
},
];
@@ -376,5 +376,5 @@ export const makeSimpleField = (resource: Resource, operation: Operation): INode
},
},
default: true,
description: 'Return a simplified version of the response instead of the raw data.',
description: 'Return a simplified version of the response instead of the raw data',
});

View File

@@ -48,7 +48,7 @@ export const signatureFields: INodeProperties[] = [
{
displayName: 'Petition ID',
name: 'petitionId',
description: 'ID of the petition to sign.',
description: 'ID of the petition to sign',
type: 'string',
default: '',
required: true,
@@ -66,7 +66,7 @@ export const signatureFields: INodeProperties[] = [
{
displayName: 'Person ID',
name: 'personId',
description: 'ID of the person whose signature to create.',
description: 'ID of the person whose signature to create',
type: 'string',
default: '',
required: true,
@@ -104,7 +104,7 @@ export const signatureFields: INodeProperties[] = [
name: 'comments',
type: 'string',
default: '',
description: 'Comments to leave when signing this petition.',
description: 'Comments to leave when signing this petition',
},
],
},
@@ -115,7 +115,7 @@ export const signatureFields: INodeProperties[] = [
{
displayName: 'Petition ID',
name: 'petitionId',
description: 'ID of the petition whose signature to retrieve.',
description: 'ID of the petition whose signature to retrieve',
type: 'string',
default: '',
required: true,
@@ -133,7 +133,7 @@ export const signatureFields: INodeProperties[] = [
{
displayName: 'Signature ID',
name: 'signatureId',
description: 'ID of the signature to retrieve.',
description: 'ID of the signature to retrieve',
type: 'string',
default: '',
required: true,
@@ -156,7 +156,7 @@ export const signatureFields: INodeProperties[] = [
{
displayName: 'Petition ID',
name: 'petitionId',
description: 'ID of the petition whose signatures to retrieve.',
description: 'ID of the petition whose signatures to retrieve',
type: 'string',
default: '',
required: true,
@@ -176,7 +176,7 @@ export const signatureFields: INodeProperties[] = [
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Return all results.',
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
@@ -193,7 +193,7 @@ export const signatureFields: INodeProperties[] = [
name: 'limit',
type: 'number',
default: 50,
description: 'The number of results to return.',
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},
@@ -219,7 +219,7 @@ export const signatureFields: INodeProperties[] = [
{
displayName: 'Petition ID',
name: 'petitionId',
description: 'ID of the petition whose signature to update.',
description: 'ID of the petition whose signature to update',
type: 'string',
default: '',
required: true,
@@ -237,7 +237,7 @@ export const signatureFields: INodeProperties[] = [
{
displayName: 'Signature ID',
name: 'signatureId',
description: 'ID of the signature to update.',
description: 'ID of the signature to update',
type: 'string',
default: '',
required: true,
@@ -275,7 +275,7 @@ export const signatureFields: INodeProperties[] = [
name: 'comments',
type: 'string',
default: '',
description: 'Comments to leave when signing this petition.',
description: 'Comments to leave when signing this petition',
},
],
},

View File

@@ -44,7 +44,7 @@ export const tagFields: INodeProperties[] = [
{
displayName: 'Name',
name: 'name',
description: 'Name of the tag to create.',
description: 'Name of the tag to create',
type: 'string',
required: true,
default: '',
@@ -67,7 +67,7 @@ export const tagFields: INodeProperties[] = [
{
displayName: 'Tag ID',
name: 'tagId',
description: 'ID of the tag to retrieve.',
description: 'ID of the tag to retrieve',
type: 'string',
default: '',
required: true,
@@ -92,7 +92,7 @@ export const tagFields: INodeProperties[] = [
name: 'returnAll',
type: 'boolean',
default: false,
description: 'Return all results.',
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
@@ -109,7 +109,7 @@ export const tagFields: INodeProperties[] = [
name: 'limit',
type: 'number',
default: 50,
description: 'The number of results to return.',
description: 'Max number of results to return',
typeOptions: {
minValue: 1,
},