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

@@ -204,7 +204,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'The ID of the file to copy.',
description: 'The ID of the file to copy',
},
// ----------------------------------
@@ -227,7 +227,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'The ID of the file/folder to delete.',
description: 'The ID of the file/folder to delete',
},
@@ -250,7 +250,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'The ID of the file to download.',
description: 'The ID of the file to download',
},
{
displayName: 'Binary Property',
@@ -268,7 +268,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'Name of the binary property to which to write the data of the read file.',
description: 'Name of the binary property to which to write the data of the read file',
},
{
displayName: 'Options',
@@ -434,7 +434,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'If a query string should be used to filter results.',
description: 'If a query string should be used to filter results',
},
{
displayName: 'Query String',
@@ -455,7 +455,7 @@ export class GoogleDrive implements INodeType {
},
},
placeholder: 'name contains \'invoice\'',
description: 'Query to use to return only specific files.',
description: 'Query to use to return only specific files',
},
{
displayName: 'Limit',
@@ -476,13 +476,13 @@ export class GoogleDrive implements INodeType {
maxValue: 1000,
},
default: 100,
description: 'How many files to return.',
description: 'Max number of results to return',
},
{
displayName: 'Filters',
name: 'queryFilters',
placeholder: 'Add Filter',
description: 'Filters to use to return only specific files.',
description: 'Filters to use to return only specific files',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
@@ -533,7 +533,7 @@ export class GoogleDrive implements INodeType {
name: 'value',
type: 'string',
default: '',
description: 'The value for operation.',
description: 'The value for operation',
},
],
},
@@ -618,7 +618,7 @@ export class GoogleDrive implements INodeType {
],
default: 'application/vnd.google-apps.file',
description: 'The Mime-Type of the files to return.',
description: 'The Mime-Type of the files to return',
},
{
displayName: 'Custom Mime Type',
@@ -659,7 +659,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'The ID of the file or shared drive.',
description: 'The ID of the file or shared drive',
},
{
displayName: 'Permissions',
@@ -741,7 +741,7 @@ export class GoogleDrive implements INodeType {
},
],
default: '',
description: 'Information about the different types can be found <a href="https://developers.google.com/drive/api/v3/ref-roles">here</a>.',
description: 'Information about the different types can be found <a href="https://developers.google.com/drive/api/v3/ref-roles">here</a>',
},
{
displayName: 'Email Address',
@@ -807,7 +807,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'If the data to upload should be taken from binary field.',
description: 'If the data to upload should be taken from binary field',
},
{
displayName: 'File Content',
@@ -829,7 +829,7 @@ export class GoogleDrive implements INodeType {
},
placeholder: '',
description: 'The text content of the file to upload.',
description: 'The text content of the file to upload',
},
{
displayName: 'Binary Property',
@@ -852,7 +852,7 @@ export class GoogleDrive implements INodeType {
},
placeholder: '',
description: 'Name of the binary property which contains the data for the file to be uploaded.',
description: 'Name of the binary property which contains the data for the file to be uploaded',
},
// ----------------------------------
@@ -874,7 +874,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'The ID of the file to update.',
description: 'The ID of the file to update',
},
{
displayName: 'Update Fields',
@@ -898,35 +898,35 @@ export class GoogleDrive implements INodeType {
name: 'fileName',
type: 'string',
default: '',
description: `The name of the file`,
description: 'The name of the file',
},
{
displayName: 'Keep Revision Forever',
name: 'keepRevisionForever',
type: 'boolean',
default: false,
description: `Whether to set the 'keepForever' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.`,
description: 'Whether to set the \'keepForever\' field in the new head revision. This is only applicable to files with binary content in Google Drive. Only 200 revisions for the file can be kept forever. If the limit is reached, try deleting pinned revisions.',
},
{
displayName: 'OCR Language',
name: 'ocrLanguage',
type: 'string',
default: '',
description: `A language hint for OCR processing during image import (ISO 639-1 code).`,
description: 'A language hint for OCR processing during image import (ISO 639-1 code)',
},
{
displayName: 'Parent ID',
name: 'parentId',
type: 'string',
default: '',
description: `The ID of the parent to set.`,
description: 'The ID of the parent to set',
},
{
displayName: 'Use Content As Indexable Text',
name: 'useContentAsIndexableText',
type: 'boolean',
default: false,
description: `Whether to use the uploaded content as indexable text.`,
description: 'Whether to use the uploaded content as indexable text',
},
],
},
@@ -955,7 +955,7 @@ export class GoogleDrive implements INodeType {
{
name: '*',
value: '*',
description: 'All fields.',
description: 'All fields',
},
{
name: 'explicitlyTrashed',
@@ -1024,7 +1024,7 @@ export class GoogleDrive implements INodeType {
],
required: true,
default: [],
description: 'The fields to return.',
description: 'The fields to return',
},
],
},
@@ -1048,7 +1048,7 @@ export class GoogleDrive implements INodeType {
},
},
placeholder: 'invoice_1.pdf',
description: 'The name the file should be saved as.',
description: 'The name the file should be saved as',
},
// ----------------------------------
{
@@ -1086,7 +1086,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'The IDs of the parent folders which contain the file.',
description: 'The IDs of the parent folders which contain the file',
},
// ----------------------------------
@@ -1113,7 +1113,7 @@ export class GoogleDrive implements INodeType {
},
},
placeholder: 'invoices',
description: 'The name of folder to create.',
description: 'The name of folder to create',
},
{
displayName: 'Options',
@@ -1152,7 +1152,7 @@ export class GoogleDrive implements INodeType {
},
},
default: '',
description: 'A plain text custom message to include in the notification email.',
description: 'A plain text custom message to include in the notification email',
},
{
displayName: 'Enforce Single Parent',
@@ -1170,7 +1170,7 @@ export class GoogleDrive implements INodeType {
},
},
default: false,
description: `Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive.`,
description: 'Set to true to opt in to API behavior that aims for all items to have exactly one parent. This parameter only takes effect if the item is not in a shared drive.',
},
{
displayName: 'Fields',
@@ -1188,7 +1188,7 @@ export class GoogleDrive implements INodeType {
{
name: '*',
value: '*',
description: 'All fields.',
description: 'All fields',
},
{
name: 'explicitlyTrashed',
@@ -1257,7 +1257,7 @@ export class GoogleDrive implements INodeType {
],
required: true,
default: [],
description: 'The fields to return.',
description: 'The fields to return',
},
{
displayName: 'Move To New Owners Root',
@@ -1275,7 +1275,7 @@ export class GoogleDrive implements INodeType {
},
},
default: false,
description: `<p>This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item.</p><p>When set to true, the item is moved to the new owner's My Drive root folder and all prior parents removed.</p>`,
description: '<p>This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item.</p><p>When set to true, the item is moved to the new owner\'s My Drive root folder and all prior parents removed.</p>',
},
{
displayName: 'Send Notification Email',
@@ -1329,7 +1329,7 @@ export class GoogleDrive implements INodeType {
},
},
default: false,
description: 'Whether to transfer ownership to the specified user and downgrade the current owner to a writer.',
description: 'Whether to transfer ownership to the specified user and downgrade the current owner to a writer',
},
{
displayName: 'Use Domain Admin Access',
@@ -1366,7 +1366,7 @@ export class GoogleDrive implements INodeType {
},
default: '',
placeholder: 'invoice_1.pdf',
description: 'The name the file should be saved as.',
description: 'The name the file should be saved as',
},
{
displayName: 'Parents',
@@ -1388,7 +1388,7 @@ export class GoogleDrive implements INodeType {
multipleValues: true,
},
default: [],
description: 'The IDs of the parent folders the file/folder should be saved in.',
description: 'The IDs of the parent folders the file/folder should be saved in',
},
{
displayName: 'Spaces',
@@ -1408,7 +1408,7 @@ export class GoogleDrive implements INodeType {
{
name: '*',
value: '*',
description: 'All spaces.',
description: 'All spaces',
},
{
name: 'appDataFolder',
@@ -1425,7 +1425,7 @@ export class GoogleDrive implements INodeType {
],
required: true,
default: [],
description: 'The spaces to operate on.',
description: 'The spaces to operate on',
},
{
displayName: 'Corpora',
@@ -1465,14 +1465,13 @@ export class GoogleDrive implements INodeType {
],
required: true,
default: '',
description: 'The corpora to operate on.',
description: 'The corpora to operate on',
},
{
displayName: 'Drive ID',
name: 'driveId',
type: 'string',
default: '',
required: false,
displayOptions: {
show: {
'/operation': [
@@ -1542,7 +1541,6 @@ export class GoogleDrive implements INodeType {
name: 'name',
type: 'string',
default: '',
required: false,
displayOptions: {
show: {
operation: [
@@ -1553,7 +1551,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'The name of this shared drive.',
description: 'The name of this shared drive',
},
{
displayName: 'Options',
@@ -1584,126 +1582,126 @@ export class GoogleDrive implements INodeType {
name: 'canAddChildren',
type: 'boolean',
default: false,
description: `Whether the current user can add children to folders in this shared drive.`,
description: 'Whether the current user can add children to folders in this shared drive',
},
{
displayName: 'Can Change Copy Requires Writer Permission Restriction',
name: 'canChangeCopyRequiresWriterPermissionRestriction',
type: 'boolean',
default: false,
description: `Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive.`,
description: 'Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive',
},
{
displayName: 'Can Change Domain Users Only Restriction',
name: 'canChangeDomainUsersOnlyRestriction',
type: 'boolean',
default: false,
description: `Whether the current user can change the domainUsersOnly restriction of this shared drive.`,
description: 'Whether the current user can change the domainUsersOnly restriction of this shared drive',
},
{
displayName: 'Can Change Drive Background',
name: 'canChangeDriveBackground',
type: 'boolean',
default: false,
description: `Whether the current user can change the background of this shared drive.`,
description: 'Whether the current user can change the background of this shared drive',
},
{
displayName: 'Can Change Drive Members Only Restriction',
name: 'canChangeDriveMembersOnlyRestriction',
type: 'boolean',
default: false,
description: `Whether the current user can change the driveMembersOnly restriction of this shared drive.`,
description: 'Whether the current user can change the driveMembersOnly restriction of this shared drive',
},
{
displayName: 'Can Comment',
name: 'canComment',
type: 'boolean',
default: false,
description: `Whether the current user can comment on files in this shared drive.`,
description: 'Whether the current user can comment on files in this shared drive',
},
{
displayName: 'Can Copy',
name: 'canCopy',
type: 'boolean',
default: false,
description: `Whether the current user can copy files in this shared drive.`,
description: 'Whether the current user can copy files in this shared drive',
},
{
displayName: 'Can Delete Children',
name: 'canDeleteChildren',
type: 'boolean',
default: false,
description: `Whether the current user can delete children from folders in this shared drive.`,
description: 'Whether the current user can delete children from folders in this shared drive',
},
{
displayName: 'Can Delete Drive',
name: 'canDeleteDrive',
type: 'boolean',
default: false,
description: `Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.`,
description: 'Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.',
},
{
displayName: 'Can Download',
name: 'canDownload',
type: 'boolean',
default: false,
description: `Whether the current user can download files in this shared drive.`,
description: 'Whether the current user can download files in this shared drive',
},
{
displayName: 'Can Edit',
name: 'canEdit',
type: 'boolean',
default: false,
description: `Whether the current user can edit files in this shared drive`,
description: 'Whether the current user can edit files in this shared drive',
},
{
displayName: 'Can List Children',
name: 'canListChildren',
type: 'boolean',
default: false,
description: `Whether the current user can list the children of folders in this shared drive.`,
description: 'Whether the current user can list the children of folders in this shared drive',
},
{
displayName: 'Can Manage Members',
name: 'canManageMembers',
type: 'boolean',
default: false,
description: `Whether the current user can add members to this shared drive or remove them or change their role.`,
description: 'Whether the current user can add members to this shared drive or remove them or change their role',
},
{
displayName: 'Can Read Revisions',
name: 'canReadRevisions',
type: 'boolean',
default: false,
description: `Whether the current user can read the revisions resource of files in this shared drive.`,
description: 'Whether the current user can read the revisions resource of files in this shared drive',
},
{
displayName: 'Can Rename',
name: 'canRename',
type: 'boolean',
default: false,
description: `Whether the current user can rename files or folders in this shared drive.`,
description: 'Whether the current user can rename files or folders in this shared drive',
},
{
displayName: 'Can Rename Drive',
name: 'canRenameDrive',
type: 'boolean',
default: false,
description: `Whether the current user can rename this shared drive.`,
description: 'Whether the current user can rename this shared drive',
},
{
displayName: 'Can Share',
name: 'canShare',
type: 'boolean',
default: false,
description: `Whether the current user can rename this shared drive.`,
description: 'Whether the current user can rename this shared drive',
},
{
displayName: 'Can Trash Children',
name: 'canTrashChildren',
type: 'boolean',
default: false,
description: `Whether the current user can trash children from folders in this shared drive.`,
description: 'Whether the current user can trash children from folders in this shared drive',
},
],
},
@@ -1719,14 +1717,14 @@ export class GoogleDrive implements INodeType {
name: 'createdTime',
type: 'dateTime',
default: '',
description: 'The time at which the shared drive was created (RFC 3339 date-time).',
description: 'The time at which the shared drive was created (RFC 3339 date-time)',
},
{
displayName: 'Hidden',
name: 'hidden',
type: 'boolean',
default: false,
description: 'Whether the shared drive is hidden from default view.',
description: 'Whether the shared drive is hidden from default view',
},
{
displayName: 'Restrictions',
@@ -1761,7 +1759,7 @@ export class GoogleDrive implements INodeType {
name: 'driveMembersOnly',
type: 'boolean',
default: false,
description: `Whether access to items inside this shared drive is restricted to its members.`,
description: 'Whether access to items inside this shared drive is restricted to its members',
},
],
},
@@ -1775,7 +1773,6 @@ export class GoogleDrive implements INodeType {
name: 'driveId',
type: 'string',
default: '',
required: false,
displayOptions: {
show: {
operation: [
@@ -1786,7 +1783,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'The ID of the shared drive.',
description: 'The ID of the shared drive',
},
// ----------------------------------
// drive:get
@@ -1796,7 +1793,6 @@ export class GoogleDrive implements INodeType {
name: 'driveId',
type: 'string',
default: '',
required: false,
displayOptions: {
show: {
operation: [
@@ -1807,7 +1803,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'The ID of the shared drive.',
description: 'The ID of the shared drive',
},
{
displayName: 'Options',
@@ -1853,7 +1849,7 @@ export class GoogleDrive implements INodeType {
},
},
default: false,
description: 'If all results should be returned or only up to a given limit.',
description: 'Whether to return all results or only up to a given limit',
},
{
displayName: 'Limit',
@@ -1877,7 +1873,7 @@ export class GoogleDrive implements INodeType {
maxValue: 200,
},
default: 100,
description: 'How many results to return.',
description: 'Max number of results to return',
},
{
displayName: 'Options',
@@ -1920,7 +1916,6 @@ export class GoogleDrive implements INodeType {
name: 'driveId',
type: 'string',
default: '',
required: false,
displayOptions: {
show: {
operation: [
@@ -1931,7 +1926,7 @@ export class GoogleDrive implements INodeType {
],
},
},
description: 'The ID of the shared drive.',
description: 'The ID of the shared drive',
},
{
displayName: 'Update Fields',
@@ -1962,7 +1957,7 @@ export class GoogleDrive implements INodeType {
name: 'name',
type: 'string',
default: '',
description: 'The name of this shared drive.',
description: 'The name of this shared drive',
},
{
displayName: 'Restrictions',
@@ -1997,7 +1992,7 @@ export class GoogleDrive implements INodeType {
name: 'driveMembersOnly',
type: 'boolean',
default: false,
description: `Whether access to items inside this shared drive is restricted to its members.`,
description: 'Whether access to items inside this shared drive is restricted to its members',
},
],
},
@@ -2040,14 +2035,14 @@ export class GoogleDrive implements INodeType {
name: 'key',
type: 'string',
default: '',
description: 'Name of the key to add.',
description: 'Name of the key to add',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'Value to set for the key.',
description: 'Value to set for the key',
},
],
},
@@ -2062,7 +2057,7 @@ export class GoogleDrive implements INodeType {
typeOptions: {
multipleValues: true,
},
description: 'A collection of arbitrary key-value pairs which are visible to all apps.',
description: 'A collection of arbitrary key-value pairs which are visible to all apps',
options: [
{
name: 'propertyValues',
@@ -2073,14 +2068,14 @@ export class GoogleDrive implements INodeType {
name: 'key',
type: 'string',
default: '',
description: 'Name of the key to add.',
description: 'Name of the key to add',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'Value to set for the key.',
description: 'Value to set for the key',
},
],
},