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

@@ -118,32 +118,32 @@ export class Telegram implements INodeType {
{
name: 'Get',
value: 'get',
description: 'Get up to date information about a chat.',
description: 'Get up to date information about a chat',
},
{
name: 'Get Administrators',
value: 'administrators',
description: 'Get the Administrators of a chat.',
description: 'Get the Administrators of a chat',
},
{
name: 'Get Member',
value: 'member',
description: 'Get the member of a chat.',
description: 'Get the member of a chat',
},
{
name: 'Leave',
value: 'leave',
description: 'Leave a group, supergroup or channel.',
description: 'Leave a group, supergroup or channel',
},
{
name: 'Set Description',
value: 'setDescription',
description: 'Set the description of a chat.',
description: 'Set the description of a chat',
},
{
name: 'Set Title',
value: 'setTitle',
description: 'Set the title of a chat.',
description: 'Set the title of a chat',
},
],
default: 'get',
@@ -165,12 +165,12 @@ export class Telegram implements INodeType {
{
name: 'Answer Query',
value: 'answerQuery',
description: 'Send answer to callback query sent from inline keyboard.',
description: 'Send answer to callback query sent from inline keyboard',
},
{
name: 'Answer Inline Query',
value: 'answerInlineQuery',
description: 'Send answer to callback query sent from inline bot.',
description: 'Send answer to callback query sent from inline bot',
},
],
default: 'answerQuery',
@@ -191,7 +191,7 @@ export class Telegram implements INodeType {
{
name: 'Get',
value: 'get',
description: 'Get a file.',
description: 'Get a file',
},
],
default: 'get',
@@ -325,7 +325,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername).',
description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)',
},
// ----------------------------------
@@ -347,7 +347,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'Unique identifier of the message to delete.',
description: 'Unique identifier of the message to delete',
},
// ----------------------------------
@@ -370,7 +370,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'Unique identifier of the message to pin or unpin.',
description: 'Unique identifier of the message to pin or unpin',
},
{
displayName: 'Additional Fields',
@@ -394,7 +394,7 @@ export class Telegram implements INodeType {
name: 'disable_notification',
type: 'boolean',
default: false,
description: 'Do not send a notification to all chat members about the new pinned message.',
description: 'Do not send a notification to all chat members about the new pinned message',
},
],
},
@@ -422,7 +422,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'Unique identifier of the target user.',
description: 'Unique identifier of the target user',
},
@@ -445,7 +445,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'New chat description, 0-255 characters.',
description: 'New chat description, 0-255 characters',
},
@@ -468,7 +468,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'New chat title, 1-255 characters.',
description: 'New chat title, 1-255 characters',
},
@@ -495,7 +495,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'Unique identifier for the query to be answered.',
description: 'Unique identifier for the query to be answered',
},
{
@@ -523,14 +523,14 @@ export class Telegram implements INodeType {
minValue: 0,
},
default: 0,
description: 'The maximum amount of time in seconds that the result of the callback query may be cached client-side.',
description: 'The maximum amount of time in seconds that the result of the callback query may be cached client-side',
},
{
displayName: 'Show Alert',
name: 'show_alert',
type: 'boolean',
default: false,
description: 'If true, an alert will be shown by the client instead of a notification at the top of the chat screen.',
description: 'If true, an alert will be shown by the client instead of a notification at the top of the chat screen',
},
{
displayName: 'Text',
@@ -547,7 +547,7 @@ export class Telegram implements INodeType {
name: 'url',
type: 'string',
default: '',
description: 'URL that will be opened by the user\'s client.',
description: 'URL that will be opened by the user\'s client',
},
],
},
@@ -571,7 +571,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'Unique identifier for the answered query.',
description: 'Unique identifier for the answered query',
},
{
displayName: 'Results',
@@ -589,7 +589,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'A JSON-serialized array of results for the inline query.',
description: 'A JSON-serialized array of results for the inline query',
},
{
displayName: 'Additional Fields',
@@ -616,14 +616,14 @@ export class Telegram implements INodeType {
minValue: 0,
},
default: 0,
description: 'The maximum amount of time in seconds that the result of the callback query may be cached client-side.',
description: 'The maximum amount of time in seconds that the result of the callback query may be cached client-side',
},
{
displayName: 'Show Alert',
name: 'show_alert',
type: 'boolean',
default: false,
description: 'If true, an alert will be shown by the client instead of a notification at the top of the chat screen.',
description: 'If true, an alert will be shown by the client instead of a notification at the top of the chat screen',
},
{
displayName: 'Text',
@@ -640,7 +640,7 @@ export class Telegram implements INodeType {
name: 'url',
type: 'string',
default: '',
description: 'URL that will be opened by the user\'s client.',
description: 'URL that will be opened by the user\'s client',
},
],
},
@@ -670,7 +670,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'The ID of the file.',
description: 'The ID of the file',
},
{
displayName: 'Download',
@@ -687,7 +687,7 @@ export class Telegram implements INodeType {
},
},
default: true,
description: 'Download the file.',
description: 'Download the file',
},
// ----------------------------------
@@ -723,7 +723,7 @@ export class Telegram implements INodeType {
},
],
default: 'message',
description: 'The type of the message to edit.',
description: 'The type of the message to edit',
},
{
@@ -745,7 +745,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername). To find your chat id ask @get_id_bot.',
description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername). To find your chat ID ask @get_id_bot.',
},
// ----------------------------------
// message:sendAnimation/sendAudio/sendDocument/sendPhoto/sendSticker/sendVideo
@@ -772,7 +772,7 @@ export class Telegram 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: 'Binary Property',
@@ -821,7 +821,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'Unique identifier of the message to edit.',
description: 'Unique identifier of the message to edit',
},
{
displayName: 'Inline Message ID',
@@ -842,7 +842,7 @@ export class Telegram implements INodeType {
},
},
required: true,
description: 'Unique identifier of the inline message to edit.',
description: 'Unique identifier of the inline message to edit',
},
{
displayName: 'Reply Markup',
@@ -869,7 +869,7 @@ export class Telegram implements INodeType {
},
],
default: 'none',
description: 'Additional interface options.',
description: 'Additional interface options',
},
@@ -1082,7 +1082,7 @@ export class Telegram implements INodeType {
],
},
},
description: 'The media to add.',
description: 'The media to add',
placeholder: 'Add Media',
typeOptions: {
multipleValues: true,
@@ -1108,7 +1108,7 @@ export class Telegram implements INodeType {
},
],
default: 'photo',
description: 'The type of the media to add.',
description: 'The type of the media to add',
},
{
displayName: 'Media File',
@@ -1132,7 +1132,7 @@ export class Telegram implements INodeType {
alwaysOpenEditWindow: true,
},
default: '',
description: 'Caption text to set, 0-1024 characters.',
description: 'Caption text to set, 0-1024 characters',
},
{
displayName: 'Parse Mode',
@@ -1149,7 +1149,7 @@ export class Telegram implements INodeType {
},
],
default: 'HTML',
description: 'How to parse the text.',
description: 'How to parse the text',
},
],
},
@@ -1182,7 +1182,7 @@ export class Telegram implements INodeType {
],
},
},
description: 'Text of the message to be sent.',
description: 'Text of the message to be sent',
},
@@ -1308,7 +1308,7 @@ export class Telegram implements INodeType {
},
],
default: 'none',
description: 'Additional interface options.',
description: 'Additional interface options',
},
{
@@ -1333,14 +1333,14 @@ export class Telegram implements INodeType {
name: 'force_reply',
type: 'boolean',
default: false,
description: 'Shows reply interface to the user, as if they manually selected the bots message and tapped Reply.',
description: 'Shows reply interface to the user, as if they manually selected the bots message and tapped Reply',
},
{
displayName: 'Selective',
name: 'selective',
type: 'boolean',
default: false,
description: ' Use this parameter if you want to force reply from specific users only.',
description: 'Use this parameter if you want to force reply from specific users only',
},
],
},
@@ -1350,7 +1350,7 @@ export class Telegram implements INodeType {
displayName: 'Inline Keyboard',
name: 'inlineKeyboard',
placeholder: 'Add Keyboard Row',
description: 'Adds an inline keyboard that appears right next to the message it belongs to.',
description: 'Adds an inline keyboard that appears right next to the message it belongs to',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
@@ -1375,7 +1375,7 @@ export class Telegram implements INodeType {
displayName: 'Row',
name: 'row',
type: 'fixedCollection',
description: 'The value to set.',
description: 'The value to set',
placeholder: 'Add Button',
typeOptions: {
multipleValues: true,
@@ -1391,7 +1391,7 @@ export class Telegram implements INodeType {
name: 'text',
type: 'string',
default: '',
description: 'Label text on the button.',
description: 'Label text on the button',
},
{
displayName: 'Additional Fields',
@@ -1405,21 +1405,21 @@ export class Telegram implements INodeType {
name: 'callback_data',
type: 'string',
default: '',
description: 'Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes.',
description: 'Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes',
},
{
displayName: 'Pay',
name: 'pay',
type: 'boolean',
default: false,
description: 'Specify True, to send a Pay button.',
description: 'Specify True, to send a Pay button',
},
{
displayName: 'Switch Inline Query Current Chat',
name: 'switch_inline_query_current_chat',
type: 'string',
default: '',
description: 'If set, pressing the button will insert the bots username and the specified inline query in the current chat\'s input field.Can be empty, in which case only the bots username will be inserted.',
description: 'If set, pressing the button will insert the bots username and the specified inline query in the current chat\'s input field.Can be empty, in which case only the bots username will be inserted',
},
{
displayName: 'Switch Inline Query',
@@ -1433,7 +1433,7 @@ export class Telegram implements INodeType {
name: 'url',
type: 'string',
default: '',
description: 'HTTP or tg:// url to be opened when button is pressed.',
description: 'HTTP or tg:// url to be opened when button is pressed',
},
],
},
@@ -1450,7 +1450,7 @@ export class Telegram implements INodeType {
displayName: 'Reply Keyboard',
name: 'replyKeyboard',
placeholder: 'Add Reply Keyboard Row',
description: 'Adds a custom keyboard with reply options.',
description: 'Adds a custom keyboard with reply options',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
@@ -1472,7 +1472,7 @@ export class Telegram implements INodeType {
displayName: 'Row',
name: 'row',
type: 'fixedCollection',
description: 'The value to set.',
description: 'The value to set',
placeholder: 'Add Button',
typeOptions: {
multipleValues: true,
@@ -1502,14 +1502,14 @@ export class Telegram implements INodeType {
name: 'request_contact',
type: 'boolean',
default: false,
description: 'If True, the user\'s phone number will be sent as a contact when the button is pressed.Available in private chats only.',
description: 'If True, the user\'s phone number will be sent as a contact when the button is pressed.Available in private chats only',
},
{
displayName: 'Request Location',
name: 'request_location',
type: 'boolean',
default: false,
description: 'If True, the user\'s request_location.',
description: 'If True, the user\'s request_location',
},
],
},
@@ -1541,21 +1541,21 @@ export class Telegram implements INodeType {
name: 'resize_keyboard',
type: 'boolean',
default: false,
description: 'Requests clients to resize the keyboard vertically for optimal fit.',
description: 'Requests clients to resize the keyboard vertically for optimal fit',
},
{
displayName: 'One Time Keyboard',
name: 'one_time_keyboard',
type: 'boolean',
default: false,
description: 'Requests clients to hide the keyboard as soon as it\'s been used.',
description: 'Requests clients to hide the keyboard as soon as it\'s been used',
},
{
displayName: 'Selective',
name: 'selective',
type: 'boolean',
default: false,
description: 'Use this parameter if you want to show the keyboard to specific users only.',
description: 'Use this parameter if you want to show the keyboard to specific users only',
},
],
},
@@ -1579,14 +1579,14 @@ export class Telegram implements INodeType {
name: 'remove_keyboard',
type: 'boolean',
default: false,
description: 'Requests clients to remove the custom keyboard.',
description: 'Requests clients to remove the custom keyboard',
},
{
displayName: 'Selective',
name: 'selective',
type: 'boolean',
default: false,
description: ' Use this parameter if you want to force reply from specific users only.',
description: 'Use this parameter if you want to force reply from specific users only',
},
],
},
@@ -1636,7 +1636,7 @@ export class Telegram implements INodeType {
},
},
default: '',
description: 'Caption text to set, 0-1024 characters.',
description: 'Caption text to set, 0-1024 characters',
},
{
displayName: 'Disable Notification',
@@ -1665,7 +1665,7 @@ export class Telegram implements INodeType {
},
},
default: false,
description: 'Disables link previews for links in this message.',
description: 'Disables link previews for links in this message',
},
{
displayName: 'Duration',
@@ -1684,7 +1684,7 @@ export class Telegram implements INodeType {
},
},
default: 0,
description: 'Duration of clip in seconds.',
description: 'Duration of clip in seconds',
},
{
displayName: 'Height',
@@ -1702,7 +1702,7 @@ export class Telegram implements INodeType {
},
},
default: 0,
description: 'Height of the video.',
description: 'Height of the video',
},
{
displayName: 'Parse Mode',
@@ -1731,7 +1731,7 @@ export class Telegram implements INodeType {
},
},
default: 'HTML',
description: 'How to parse the text.',
description: 'How to parse the text',
},
{
displayName: 'Performer',
@@ -1745,7 +1745,7 @@ export class Telegram implements INodeType {
},
},
default: '',
description: 'Name of the performer.',
description: 'Name of the performer',
},
{
displayName: 'Reply To Message ID',
@@ -1759,7 +1759,7 @@ export class Telegram implements INodeType {
},
},
default: 0,
description: 'If the message is a reply, ID of the original message.',
description: 'If the message is a reply, ID of the original message',
},
{
displayName: 'Title',
@@ -1776,7 +1776,7 @@ export class Telegram implements INodeType {
},
},
default: '',
description: 'Title of the track.',
description: 'Title of the track',
},
{
displayName: 'Thumbnail',
@@ -1811,7 +1811,7 @@ export class Telegram implements INodeType {
},
},
default: 0,
description: 'Width of the video.',
description: 'Width of the video',
},
],
},