mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor: Apply more eslint-plugin-n8n-nodes-base rules (#3534)
* ⚡ Update `lintfix` script * ⚡ Run baseline `lintfix` * 🔥 Remove unneeded exceptions (#3538) * 🔥 Remove exceptions for `node-param-default-wrong-for-simplify` * 🔥 Remove exceptions for `node-param-placeholder-miscased-id` * ⚡ Update version * 👕 Apply `node-param-placeholder-missing` (#3542) * 👕 Apply `filesystem-wrong-cred-filename` (#3543) * 👕 Apply `node-param-description-missing-from-dynamic-options` (#3545) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply `node-class-description-empty-string` (#3546) * 👕 Apply `node-class-description-icon-not-svg` (#3548) * 👕 Apply `filesystem-wrong-node-filename` (#3549) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Expand lintings to credentials (#3550) * 👕 Apply `node-param-multi-options-type-unsorted-items` (#3552) * ⚡ fix * ⚡ Minor fixes Co-authored-by: Michael Kret <michael.k@radency.com> * 👕 Apply `node-param-description-wrong-for-dynamic-multi-options` (#3541) * ⚡ Add new lint rule, node-param-description-wrong-for-dynamic-multi-options * ⚡ Fix with updated linting rules * ⚡ Minor fixes Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply `node-param-description-boolean-without-whether` (#3553) * ⚡ fix * Update packages/nodes-base/nodes/Clockify/ProjectDescription.ts Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-display-name-wrong-for-dynamic-multi-options (#3537) * 👕 Add exceptions * 👕 Add exception * ✏️ Alphabetize rules * ⚡ Restore `lintfix` command Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
This commit is contained in:
@@ -54,6 +54,7 @@ export const messageFields: INodeProperties[] = [
|
||||
/* message:sendPrivate */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-multi-options
|
||||
displayName: 'To',
|
||||
name: 'to',
|
||||
type: 'multiOptions',
|
||||
@@ -72,7 +73,7 @@ export const messageFields: INodeProperties[] = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The destination stream, or a comma-separated list containing the usernames (emails) of the recipients',
|
||||
description: 'The destination stream, or a comma-separated list containing the usernames (emails) of the recipients. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Content',
|
||||
|
||||
@@ -160,6 +160,7 @@ export const streamFields: INodeProperties[] = [
|
||||
name: 'announce',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
|
||||
description: 'If announce is True and one of the streams specified in subscriptions has to be created (i.e. doesnt exist to begin with), an announcement will be made notifying that a new stream was created.',
|
||||
},
|
||||
{
|
||||
@@ -167,7 +168,7 @@ export const streamFields: INodeProperties[] = [
|
||||
name: 'authorizationErrorsFatal',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'A boolean specifying whether authorization errors (such as when the requesting user is not authorized to access a private stream) should be considered fatal or not. When True, an authorization error is reported as such. When set to False, the returned JSON payload indicates that there was an authorization error, but the response is still considered a successful one.',
|
||||
description: 'Whether authorization errors (such as when the requesting user is not authorized to access a private stream) should be considered fatal or not. When True, an authorization error is reported as such. When set to False, the returned JSON payload indicates that there was an authorization error, but the response is still considered a successful one.',
|
||||
},
|
||||
{
|
||||
displayName: 'History Public to Subscribers',
|
||||
@@ -181,7 +182,7 @@ export const streamFields: INodeProperties[] = [
|
||||
name: 'inviteOnly',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'A boolean specifying whether the streams specified in subscriptions are invite-only or not',
|
||||
description: 'Whether the streams specified in subscriptions are invite-only or not',
|
||||
},
|
||||
{
|
||||
displayName: 'Principals',
|
||||
@@ -201,6 +202,7 @@ export const streamFields: INodeProperties[] = [
|
||||
displayName: 'Principal Email',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
placeholder: 'name@email.com',
|
||||
required: true,
|
||||
default: '',
|
||||
description: 'Principal email address',
|
||||
@@ -261,35 +263,35 @@ export const streamFields: INodeProperties[] = [
|
||||
name: 'includeAllActive',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'Include all active streams. The user must have administrative privileges to use this parameter.',
|
||||
description: 'Whether to include all active streams. The user must have administrative privileges to use this parameter.',
|
||||
},
|
||||
{
|
||||
displayName: 'Include Default',
|
||||
name: 'includeDefault',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'Include all default streams for the users realm',
|
||||
description: 'Whether to include all default streams for the users realm',
|
||||
},
|
||||
{
|
||||
displayName: 'Include Owner Subscribed',
|
||||
name: 'includeOwnersubscribed',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'If the user is a bot, include all streams that the bots owner is subscribed to',
|
||||
description: 'Whether the user is a bot, include all streams that the bots owner is subscribed to',
|
||||
},
|
||||
{
|
||||
displayName: 'Include Public',
|
||||
name: 'includePublic',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'Include all public streams',
|
||||
description: 'Whether to include all public streams',
|
||||
},
|
||||
{
|
||||
displayName: 'Include Subscribed',
|
||||
name: 'includeSubscribed',
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
description: 'Include all streams that the user is subscribed to',
|
||||
description: 'Whether to include all streams that the user is subscribed to',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -426,7 +428,7 @@ export const streamFields: INodeProperties[] = [
|
||||
name: 'isPrivate',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'Change whether the stream is a private stream',
|
||||
description: 'Whether the stream is a private stream',
|
||||
},
|
||||
{
|
||||
displayName: 'History Public to Subscribers',
|
||||
|
||||
@@ -52,6 +52,7 @@ export const userFields: INodeProperties[] = [
|
||||
displayName: 'Email',
|
||||
name: 'email',
|
||||
type: 'string',
|
||||
placeholder: 'name@email.com',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
|
||||
Reference in New Issue
Block a user