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

@@ -307,20 +307,20 @@ export class GoogleDrive implements INodeType {
type: 'options',
options: [
{
name: 'To MS Word',
value: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
name: 'To HTML',
value: 'text/html',
},
{
name: 'To PDF',
value: 'application/pdf',
name: 'To MS Word',
value: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
},
{
name: 'To OpenOffice Doc',
value: 'application/vnd.oasis.opendocument.text',
},
{
name: 'To HTML',
value: 'text/html',
name: 'To PDF',
value: 'application/pdf',
},
{
name: 'To Rich Text',
@@ -546,19 +546,18 @@ export class GoogleDrive implements INodeType {
name: 'mimeType',
type: 'options',
options: [
{
name: 'Custom Mime Type',
value: 'custom',
},
{
name: '3rd party shortcut',
name: '3rd Party Shortcut',
value: 'application/vnd.google-apps.drive-sdk',
},
{
name: 'Audio',
value: 'application/vnd.google-apps.audio',
},
{
name: 'Custom Mime Type',
value: 'custom',
},
{
name: 'Google Apps Scripts',
value: 'application/vnd.google-apps.script',
@@ -572,11 +571,11 @@ export class GoogleDrive implements INodeType {
value: 'application/vnd.google-apps.drawing',
},
{
name: 'Google Drive file',
name: 'Google Drive File',
value: 'application/vnd.google-apps.file',
},
{
name: 'Google Drive folder',
name: 'Google Drive Folder',
value: 'application/vnd.google-apps.folder',
},
{
@@ -615,7 +614,6 @@ export class GoogleDrive implements INodeType {
name: 'Video',
value: 'application/vnd.google-apps.video',
},
],
default: 'application/vnd.google-apps.file',
description: 'The Mime-Type of the files to return',
@@ -692,29 +690,29 @@ export class GoogleDrive implements INodeType {
type: 'options',
options: [
{
name: 'Owner',
value: 'owner',
},
{
name: 'Organizer',
value: 'organizer',
name: 'Commenter',
value: 'commenter',
},
{
name: 'File Organizer',
value: 'fileOrganizer',
},
{
name: 'Writer',
value: 'writer',
name: 'Organizer',
value: 'organizer',
},
{
name: 'Commenter',
value: 'commenter',
name: 'Owner',
value: 'owner',
},
{
name: 'Reader',
value: 'reader',
},
{
name: 'Writer',
value: 'writer',
},
],
default: '',
},
@@ -978,11 +976,11 @@ export class GoogleDrive implements INodeType {
value: 'id',
},
{
name: 'kind',
name: 'Kind',
value: 'kind',
},
{
name: 'name',
name: 'Name',
value: 'name',
},
{
@@ -990,19 +988,19 @@ export class GoogleDrive implements INodeType {
value: 'mimeType',
},
{
name: 'permissions',
name: 'Permissions',
value: 'permissions',
},
{
name: 'shared',
name: 'Shared',
value: 'shared',
},
{
name: 'spaces',
name: 'Spaces',
value: 'spaces',
},
{
name: 'starred',
name: 'Starred',
value: 'starred',
},
{
@@ -1010,11 +1008,11 @@ export class GoogleDrive implements INodeType {
value: 'thumbnailLink',
},
{
name: 'trashed',
name: 'Trashed',
value: 'trashed',
},
{
name: 'version',
name: 'Version',
value: 'version',
},
{
@@ -1211,11 +1209,11 @@ export class GoogleDrive implements INodeType {
value: 'id',
},
{
name: 'kind',
name: 'Kind',
value: 'kind',
},
{
name: 'name',
name: 'Name',
value: 'name',
},
{
@@ -1223,19 +1221,19 @@ export class GoogleDrive implements INodeType {
value: 'mimeType',
},
{
name: 'permissions',
name: 'Permissions',
value: 'permissions',
},
{
name: 'shared',
name: 'Shared',
value: 'shared',
},
{
name: 'spaces',
name: 'Spaces',
value: 'spaces',
},
{
name: 'starred',
name: 'Starred',
value: 'starred',
},
{
@@ -1243,11 +1241,11 @@ export class GoogleDrive implements INodeType {
value: 'thumbnailLink',
},
{
name: 'trashed',
name: 'Trashed',
value: 'trashed',
},
{
name: 'version',
name: 'Version',
value: 'version',
},
{
@@ -1415,11 +1413,11 @@ export class GoogleDrive implements INodeType {
value: 'appDataFolder',
},
{
name: 'drive',
name: 'Drive',
value: 'drive',
},
{
name: 'photos',
name: 'Photos',
value: 'photos',
},
],
@@ -1443,17 +1441,17 @@ export class GoogleDrive implements INodeType {
},
options: [
{
name: 'user',
name: 'User',
value: 'user',
description: 'All files in "My Drive" and "Shared with me"',
},
{
name: 'domain',
name: 'Domain',
value: 'domain',
description: 'All files shared to the user\'s domain that are searchable',
},
{
name: 'drive',
name: 'Drive',
value: 'drive',
description: 'All files contained in a single shared drive',
},

View File

@@ -208,6 +208,7 @@ export class GoogleDriveTrigger implements INodeType {
default: '',
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName: 'Drive To Watch',
name: 'driveToWatch',
type: 'options',
@@ -223,7 +224,7 @@ export class GoogleDriveTrigger implements INodeType {
},
default: 'root',
required: true,
description: 'The drive to monitor',
description: 'The drive to monitor. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Watch For',