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

@@ -32,27 +32,27 @@ export const nodeDescription: INodeTypeDescription = {
{
name: 'Aggregate',
value: 'aggregate',
description: 'Aggregate documents.',
description: 'Aggregate documents',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete documents.',
description: 'Delete documents',
},
{
name: 'Find',
value: 'find',
description: 'Find documents.',
description: 'Find documents',
},
{
name: 'Insert',
value: 'insert',
description: 'Insert documents.',
description: 'Insert documents',
},
{
name: 'Update',
value: 'update',
description: 'Update documents.',
description: 'Update documents',
},
],
default: 'find',
@@ -112,7 +112,7 @@ export const nodeDescription: INodeTypeDescription = {
default: '{}',
placeholder: `{ "birth": { "$gt": "1950-01-01" } }`,
required: true,
description: 'MongoDB Delete query.',
description: 'MongoDB Delete query',
},
// ----------------------------------
@@ -136,14 +136,15 @@ export const nodeDescription: INodeTypeDescription = {
name: 'limit',
type: 'number',
default: 0,
description: 'Use limit to specify the maximum number of documents or 0 for unlimited documents.',
// eslint-disable-next-line n8n-nodes-base/node-param-description-wrong-for-limit
description: 'Use limit to specify the maximum number of documents or 0 for unlimited documents',
},
{
displayName: 'Skip',
name: 'skip',
type: 'number',
default: 0,
description: 'The number of documents to skip in the results set.',
description: 'The number of documents to skip in the results set',
},
{
displayName: 'Sort (JSON format)',
@@ -155,7 +156,7 @@ export const nodeDescription: INodeTypeDescription = {
default: '{}',
placeholder: '{ "field": -1 }',
required: true,
description: 'A json that defines the sort order of the result set.',
description: 'A json that defines the sort order of the result set',
},
],
},
@@ -176,7 +177,7 @@ export const nodeDescription: INodeTypeDescription = {
default: '{}',
placeholder: `{ "birth": { "$gt": "1950-01-01" } }`,
required: true,
description: 'MongoDB Find query.',
description: 'MongoDB Find query',
},
// ----------------------------------
@@ -195,7 +196,7 @@ export const nodeDescription: INodeTypeDescription = {
},
default: '',
placeholder: 'name,description',
description: `Comma-separated list of the fields to be included into the new document.`,
description: 'Comma-separated list of the fields to be included into the new document',
},
// ----------------------------------
@@ -214,8 +215,8 @@ export const nodeDescription: INodeTypeDescription = {
},
default: 'id',
required: true,
description:
'Name of the property which decides which rows in the database should be updated. Normally that would be "id".',
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-id
description: 'Name of the property which decides which rows in the database should be updated. Normally that would be "id".',
},
{
displayName: 'Fields',
@@ -230,7 +231,7 @@ export const nodeDescription: INodeTypeDescription = {
},
default: '',
placeholder: 'name,description',
description: `Comma-separated list of the fields to be included into the new document.`,
description: 'Comma-separated list of the fields to be included into the new document',
},
{
displayName: 'Upsert',
@@ -242,7 +243,7 @@ export const nodeDescription: INodeTypeDescription = {
},
},
default: false,
description: `Perform an insert if no documents match the update key`,
description: 'Perform an insert if no documents match the update key',
},
{
displayName: 'Options',