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

*  Initial setup

* 👕 Update `.eslintignore`

* 👕 Autofix node-param-default-missing (#3173)

* 🔥 Remove duplicate key

* 👕 Add exceptions

* 📦 Update package-lock.json

* 👕 Apply `node-class-description-inputs-wrong-trigger-node` (#3176)

* 👕 Apply `node-class-description-inputs-wrong-regular-node` (#3177)

* 👕 Apply `node-class-description-outputs-wrong` (#3178)

* 👕 Apply `node-execute-block-double-assertion-for-items` (#3179)

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

* 👕 Apply node-param-default-wrong-for-boolean (#3181)

* Autofixed default missing

* Autofixed booleans, worked well

*  Fix params

*  Undo exempted autofixes

* 📦 Update package-lock.json

* 👕 Apply node-class-description-missing-subtitle (#3182)

*  Fix missing comma

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

* 👕 Add exception for `node-class-description-missing-subtitle`

* 👕 Apply `node-param-default-wrong-for-multi-options` (#3185)

* 👕 Apply `node-param-collection-type-unsorted-items` (#3186)

* Missing coma

* 👕 Apply `node-param-default-wrong-for-simplify` (#3187)

* 👕 Apply `node-param-description-comma-separated-hyphen` (#3190)

* 👕 Apply `node-param-description-empty-string` (#3189)

* 👕 Apply `node-param-description-excess-inner-whitespace` (#3191)

* Rule looks good

* Add whitespace rule in eslint config

* :zao: fix

* 👕 Apply `node-param-description-identical-to-display-name` (#3193)

* 👕 Apply `node-param-description-missing-for-ignore-ssl-issues` (#3195)

*  Revert ":zao: fix"

This reverts commit ef8a76f3dfedffd1bdccf3178af8a8d90cf5a55c.

* 👕 Apply `node-param-description-missing-for-simplify`  (#3196)

* 👕 Apply `node-param-description-missing-final-period` (#3194)

* Rule working as intended

* Add rule to eslint

* 👕 Apply node-param-description-missing-for-return-all (#3197)

*  Restore `lintfix` command

Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: agobrech <ael.gobrecht@gmail.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
Iván Ovejero
2022-04-22 18:29:51 +02:00
committed by GitHub
parent aeb5a1234a
commit 0448feec56
408 changed files with 2591 additions and 2026 deletions

View File

@@ -121,14 +121,12 @@ export const contactFields: INodeProperties[] = [
name: 'city',
type: 'string',
default: '',
description: 'City',
},
{
displayName: 'Region',
name: 'region',
type: 'string',
default: '',
description: 'Region',
},
{
displayName: 'Country Code',
@@ -141,7 +139,6 @@ export const contactFields: INodeProperties[] = [
name: 'postalCode',
type: 'string',
default: '',
description: 'Postal code',
},
{
displayName: 'Type',
@@ -177,7 +174,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Company',
name: 'companyUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Company',
typeOptions: {
multipleValues: true,
@@ -219,7 +216,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Custom Fields',
name: 'customFieldsUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Custom Field',
typeOptions: {
multipleValues: true,
@@ -251,7 +248,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Emails',
name: 'emailsUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Email',
typeOptions: {
multipleValues: true,
@@ -280,7 +277,7 @@ export const contactFields: INodeProperties[] = [
},
],
default: '',
description: `The type of the email address. The type can be custom or one of these predefined values`,
description: 'The type of the email address. The type can be custom or one of these predefined values.',
},
{
displayName: 'Value',
@@ -297,7 +294,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Events',
name: 'eventsUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Event',
description: 'An event related to the person.',
typeOptions: {
@@ -330,7 +327,7 @@ export const contactFields: INodeProperties[] = [
},
],
default: '',
description: `The type of the event. The type can be custom or one of these predefined values`,
description: 'The type of the event. The type can be custom or one of these predefined values.',
},
],
},
@@ -383,7 +380,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Phone',
name: 'phoneUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Phone',
typeOptions: {
multipleValues: true,
@@ -464,7 +461,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Relations',
name: 'relationsUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Relation',
typeOptions: {
multipleValues: true,
@@ -540,7 +537,7 @@ export const contactFields: INodeProperties[] = [
},
],
default: '',
description: `The person's relation to the other person. The type can be custom or one of these predefined values`,
description: 'The person\'s relation to the other person. The type can be custom or one of these predefined values.',
},
],
},
@@ -704,7 +701,7 @@ export const contactFields: INodeProperties[] = [
],
},
},
default: '',
default: [],
description: 'A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas.',
},
{
@@ -884,7 +881,7 @@ export const contactFields: INodeProperties[] = [
],
},
},
default: '',
default: [],
description: 'A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas.',
},
{
@@ -1128,7 +1125,7 @@ export const contactFields: INodeProperties[] = [
],
},
},
default: '',
default: [],
description: 'A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas.',
},
{
@@ -1189,14 +1186,12 @@ export const contactFields: INodeProperties[] = [
name: 'city',
type: 'string',
default: '',
description: 'City',
},
{
displayName: 'Region',
name: 'region',
type: 'string',
default: '',
description: 'Region',
},
{
displayName: 'Country Code',
@@ -1209,7 +1204,6 @@ export const contactFields: INodeProperties[] = [
name: 'postalCode',
type: 'string',
default: '',
description: 'Postal code',
},
{
displayName: 'Type',
@@ -1245,7 +1239,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Company',
name: 'companyUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Company',
typeOptions: {
multipleValues: true,
@@ -1287,7 +1281,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Custom Fields',
name: 'customFieldsUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Custom Field',
typeOptions: {
multipleValues: true,
@@ -1319,7 +1313,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Emails',
name: 'emailsUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Email',
typeOptions: {
multipleValues: true,
@@ -1348,7 +1342,7 @@ export const contactFields: INodeProperties[] = [
},
],
default: '',
description: `The type of the email address. The type can be custom or one of these predefined values`,
description: 'The type of the email address. The type can be custom or one of these predefined values.',
},
{
displayName: 'Value',
@@ -1365,7 +1359,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Events',
name: 'eventsUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Event',
description: 'An event related to the person.',
typeOptions: {
@@ -1398,7 +1392,7 @@ export const contactFields: INodeProperties[] = [
},
],
default: '',
description: `The type of the event. The type can be custom or one of these predefined values`,
description: 'The type of the event. The type can be custom or one of these predefined values.',
},
],
},
@@ -1451,7 +1445,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Phone',
name: 'phoneUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Phone',
typeOptions: {
multipleValues: true,
@@ -1532,7 +1526,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Relations',
name: 'relationsUi',
type: 'fixedCollection',
default: '',
default: {},
placeholder: 'Add Relation',
typeOptions: {
multipleValues: true,
@@ -1608,7 +1602,7 @@ export const contactFields: INodeProperties[] = [
},
],
default: '',
description: `The person's relation to the other person. The type can be custom or one of these predefined values`,
description: 'The person\'s relation to the other person. The type can be custom or one of these predefined values.',
},
],
},