mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
@@ -18,12 +18,12 @@ export const channelOperations: INodeProperties[] = [
|
||||
{
|
||||
name: 'Archive',
|
||||
value: 'archive',
|
||||
description: 'Archives a conversation.',
|
||||
description: 'Archives a conversation',
|
||||
},
|
||||
{
|
||||
name: 'Close',
|
||||
value: 'close',
|
||||
description: 'Closes a direct message or multi-person direct message.',
|
||||
description: 'Closes a direct message or multi-person direct message',
|
||||
},
|
||||
{
|
||||
name: 'Create',
|
||||
@@ -33,17 +33,17 @@ export const channelOperations: INodeProperties[] = [
|
||||
{
|
||||
name: 'Get',
|
||||
value: 'get',
|
||||
description: 'Get information about a channel.',
|
||||
description: 'Get information about a channel',
|
||||
},
|
||||
{
|
||||
name: 'Get All',
|
||||
value: 'getAll',
|
||||
description: 'Get all channels in a Slack team.',
|
||||
description: 'Get all channels in a Slack team',
|
||||
},
|
||||
{
|
||||
name: 'History',
|
||||
value: 'history',
|
||||
description: `Get a conversation's history of messages and events.`,
|
||||
description: 'Get a conversation\'s history of messages and events',
|
||||
},
|
||||
{
|
||||
name: 'Invite',
|
||||
@@ -53,32 +53,32 @@ export const channelOperations: INodeProperties[] = [
|
||||
{
|
||||
name: 'Join',
|
||||
value: 'join',
|
||||
description: 'Joins an existing conversation.',
|
||||
description: 'Joins an existing conversation',
|
||||
},
|
||||
{
|
||||
name: 'Kick',
|
||||
value: 'kick',
|
||||
description: 'Removes a user from a channel.',
|
||||
description: 'Removes a user from a channel',
|
||||
},
|
||||
{
|
||||
name: 'Leave',
|
||||
value: 'leave',
|
||||
description: 'Leaves a conversation.',
|
||||
description: 'Leaves a conversation',
|
||||
},
|
||||
{
|
||||
name: 'Member',
|
||||
value: 'member',
|
||||
description: 'List members of a conversation.',
|
||||
description: 'List members of a conversation',
|
||||
},
|
||||
{
|
||||
name: 'Open',
|
||||
value: 'open',
|
||||
description: 'Opens or resumes a direct message or multi-person direct message.',
|
||||
description: 'Opens or resumes a direct message or multi-person direct message',
|
||||
},
|
||||
{
|
||||
name: 'Rename',
|
||||
value: 'rename',
|
||||
description: 'Renames a conversation.',
|
||||
description: 'Renames a conversation',
|
||||
},
|
||||
{
|
||||
name: 'Replies',
|
||||
@@ -88,17 +88,17 @@ export const channelOperations: INodeProperties[] = [
|
||||
{
|
||||
name: 'Set Purpose',
|
||||
value: 'setPurpose',
|
||||
description: 'Sets the purpose for a conversation.',
|
||||
description: 'Sets the purpose for a conversation',
|
||||
},
|
||||
{
|
||||
name: 'Set Topic',
|
||||
value: 'setTopic',
|
||||
description: 'Sets the topic for a conversation.',
|
||||
description: 'Sets the topic for a conversation',
|
||||
},
|
||||
{
|
||||
name: 'Unarchive',
|
||||
value: 'unarchive',
|
||||
description: 'Unarchives a conversation.',
|
||||
description: 'Unarchives a conversation',
|
||||
},
|
||||
],
|
||||
default: 'create',
|
||||
@@ -130,7 +130,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'The name of the channel to archive.',
|
||||
description: 'The name of the channel to archive',
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -155,7 +155,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'The name of the channel to close.',
|
||||
description: 'The name of the channel to close',
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -178,7 +178,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The name of the channel to create.',
|
||||
description: 'The name of the channel to create',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -229,7 +229,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The ID of the channel to invite user to.',
|
||||
description: 'The ID of the channel to invite user to',
|
||||
},
|
||||
{
|
||||
displayName: 'User IDs',
|
||||
@@ -250,7 +250,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The ID of the user to invite into channel.',
|
||||
description: 'The ID of the user to invite into channel',
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -323,7 +323,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The name of the channel to create.',
|
||||
description: 'The name of the channel to create',
|
||||
},
|
||||
{
|
||||
displayName: 'User',
|
||||
@@ -388,7 +388,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
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',
|
||||
@@ -412,7 +412,7 @@ export const channelFields: INodeProperties[] = [
|
||||
maxValue: 100,
|
||||
},
|
||||
default: 50,
|
||||
description: 'How many results to return.',
|
||||
description: 'Max number of results to return',
|
||||
},
|
||||
{
|
||||
displayName: 'Filters',
|
||||
@@ -489,7 +489,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The name of the channel to create.',
|
||||
description: 'The name of the channel to create',
|
||||
},
|
||||
{
|
||||
displayName: 'Return All',
|
||||
@@ -506,7 +506,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
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',
|
||||
@@ -530,7 +530,7 @@ export const channelFields: INodeProperties[] = [
|
||||
maxValue: 100,
|
||||
},
|
||||
default: 50,
|
||||
description: 'How many results to return.',
|
||||
description: 'Max number of results to return',
|
||||
},
|
||||
{
|
||||
displayName: 'Filters',
|
||||
@@ -554,21 +554,21 @@ export const channelFields: INodeProperties[] = [
|
||||
name: 'inclusive',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Include messages with latest or oldest timestamp in results only when either timestamp is specified.',
|
||||
description: 'Include messages with latest or oldest timestamp in results only when either timestamp is specified',
|
||||
},
|
||||
{
|
||||
displayName: 'Latest',
|
||||
name: 'latest',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'End of time range of messages to include in results.',
|
||||
description: 'End of time range of messages to include in results',
|
||||
},
|
||||
{
|
||||
displayName: 'Oldest',
|
||||
name: 'oldest',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
description: 'Start of time range of messages to include in results.',
|
||||
description: 'Start of time range of messages to include in results',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -595,7 +595,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'The name of the channel to leave.',
|
||||
description: 'The name of the channel to leave',
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -636,12 +636,13 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
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',
|
||||
name: 'limit',
|
||||
type: 'number',
|
||||
description: 'Max number of results to return',
|
||||
default: 100,
|
||||
placeholder: 'Limit',
|
||||
displayOptions: {
|
||||
@@ -657,7 +658,6 @@ export const channelFields: INodeProperties[] = [
|
||||
],
|
||||
},
|
||||
},
|
||||
required: false,
|
||||
},
|
||||
{
|
||||
displayName: 'Resolve Data',
|
||||
@@ -709,7 +709,7 @@ export const channelFields: INodeProperties[] = [
|
||||
name: 'returnIm',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Boolean, indicates you want the full IM channel definition in the response.',
|
||||
description: 'Boolean, indicates you want the full IM channel definition in the response',
|
||||
},
|
||||
{
|
||||
displayName: 'Users',
|
||||
@@ -719,7 +719,7 @@ export const channelFields: INodeProperties[] = [
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: [],
|
||||
description: `If only one user is included, this creates a 1:1 DM. The ordering of the users is preserved whenever a multi-person direct message is returned. Supply a channel when not supplying users.`,
|
||||
description: 'If only one user is included, this creates a 1:1 DM. The ordering of the users is preserved whenever a multi-person direct message is returned. Supply a channel when not supplying users.',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -746,7 +746,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'The name of the channel to rename.',
|
||||
description: 'The name of the channel to rename',
|
||||
},
|
||||
{
|
||||
displayName: 'Name',
|
||||
@@ -764,7 +764,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'New name for conversation.',
|
||||
description: 'New name for conversation',
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -790,7 +790,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: 'The name of the channel to create.',
|
||||
description: 'The name of the channel to create',
|
||||
},
|
||||
{
|
||||
displayName: 'TS',
|
||||
@@ -808,7 +808,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
description: `Unique identifier of a thread's parent message.`,
|
||||
description: 'Unique identifier of a thread\'s parent message',
|
||||
},
|
||||
{
|
||||
displayName: 'Return All',
|
||||
@@ -825,7 +825,7 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
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',
|
||||
@@ -849,7 +849,7 @@ export const channelFields: INodeProperties[] = [
|
||||
maxValue: 100,
|
||||
},
|
||||
default: 50,
|
||||
description: 'How many results to return.',
|
||||
description: 'Max number of results to return',
|
||||
},
|
||||
{
|
||||
displayName: 'Filters',
|
||||
@@ -873,21 +873,21 @@ export const channelFields: INodeProperties[] = [
|
||||
name: 'inclusive',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Include messages with latest or oldest timestamp in results only when either timestamp is specified.',
|
||||
description: 'Include messages with latest or oldest timestamp in results only when either timestamp is specified',
|
||||
},
|
||||
{
|
||||
displayName: 'Latest',
|
||||
name: 'latest',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'End of time range of messages to include in results.',
|
||||
description: 'End of time range of messages to include in results',
|
||||
},
|
||||
{
|
||||
displayName: 'Oldest',
|
||||
name: 'oldest',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Start of time range of messages to include in results.',
|
||||
description: 'Start of time range of messages to include in results',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1000,6 +1000,6 @@ export const channelFields: INodeProperties[] = [
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'The ID of the channel to unarchive.',
|
||||
description: 'The ID of the channel to unarchive',
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user