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:
Iván Ovejero
2022-06-20 16:54:01 +02:00
committed by GitHub
parent 3c3b18095a
commit 88dea330b9
552 changed files with 2188 additions and 1367 deletions

View File

@@ -209,7 +209,7 @@ export const messageFields: INodeProperties[] = [
name: 'link_names',
type: 'boolean',
default: false,
description: 'Find and link channel names and usernames',
description: 'Whether to find and link channel names and usernames',
},
{
displayName: 'Make Reply',
@@ -223,28 +223,28 @@ export const messageFields: INodeProperties[] = [
name: 'mrkdwn',
type: 'boolean',
default: true,
description: 'Use Slack Markdown parsing',
description: 'Whether to use Slack Markdown parsing',
},
{
displayName: 'Reply Broadcast',
name: 'reply_broadcast',
type: 'boolean',
default: false,
description: 'Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation',
description: 'Whether the reply should be made visible to everyone in the channel or conversation. Use in conjunction with thread_ts.',
},
{
displayName: 'Unfurl Links',
name: 'unfurl_links',
type: 'boolean',
default: false,
description: 'Pass true to enable unfurling of primarily text-based content',
description: 'Whether to enable unfurling of primarily text-based content',
},
{
displayName: 'Unfurl Media',
name: 'unfurl_media',
type: 'boolean',
default: true,
description: 'Pass false to disable unfurling of media content',
description: 'Whether to disable unfurling of media content',
},
{
displayName: 'Send as User',
@@ -450,7 +450,7 @@ export const messageFields: INodeProperties[] = [
name: 'short',
type: 'boolean',
default: true,
description: 'If items can be displayed next to each other',
description: 'Whether items can be displayed next to each other',
},
],
},
@@ -556,7 +556,7 @@ export const messageFields: INodeProperties[] = [
name: 'link_names',
type: 'boolean',
default: false,
description: 'Find and link channel names and usernames',
description: 'Whether to find and link channel names and usernames',
},
{
displayName: 'Parse',
@@ -746,7 +746,7 @@ export const messageFields: INodeProperties[] = [
},
},
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format',
description: 'Whether emojis in a text field should be escaped into the colon emoji format',
},
{
displayName: 'Action ID',
@@ -858,7 +858,7 @@ export const messageFields: INodeProperties[] = [
name: 'emoji',
type: 'boolean',
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format',
description: 'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
@@ -891,7 +891,7 @@ export const messageFields: INodeProperties[] = [
name: 'emoji',
type: 'boolean',
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format',
description: 'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
@@ -924,7 +924,7 @@ export const messageFields: INodeProperties[] = [
name: 'emoji',
type: 'boolean',
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format',
description: 'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
@@ -957,7 +957,7 @@ export const messageFields: INodeProperties[] = [
name: 'emoji',
type: 'boolean',
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format',
description: 'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
@@ -1065,7 +1065,7 @@ export const messageFields: INodeProperties[] = [
},
type: 'boolean',
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format. This field is only usable when type is plain_text.',
description: 'Whether emojis in a text field should be escaped into the colon emoji format. This field is only usable when type is plain_text.',
},
{
displayName: 'Verbatim',
@@ -1079,7 +1079,7 @@ export const messageFields: INodeProperties[] = [
},
type: 'boolean',
default: false,
description: 'When set to false (as is default) URLs will be auto-converted into links, conversation names will be link-ified, and certain mentions will be automatically parsed',
description: 'Whether to set to false (as is default) URLs will be auto-converted into links, conversation names will be link-ified, and certain mentions will be automatically parsed',
},
],
},
@@ -1143,7 +1143,7 @@ export const messageFields: INodeProperties[] = [
},
},
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format. This field is only usable when type is plain_text.',
description: 'Whether emojis in a text field should be escaped into the colon emoji format. This field is only usable when type is plain_text.',
},
{
displayName: 'Verbatim',
@@ -1157,6 +1157,7 @@ export const messageFields: INodeProperties[] = [
},
type: 'boolean',
default: false,
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
description: 'When set to false (as is default) URLs will be auto-converted into links, conversation names will be link-ified, and certain mentions will be automatically parsed',
},
],
@@ -1224,7 +1225,7 @@ export const messageFields: INodeProperties[] = [
},
type: 'boolean',
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format',
description: 'Whether emojis in a text field should be escaped into the colon emoji format',
},
{
displayName: 'Action ID',
@@ -1343,7 +1344,7 @@ export const messageFields: INodeProperties[] = [
name: 'emoji',
type: 'boolean',
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format',
description: 'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
@@ -1376,7 +1377,7 @@ export const messageFields: INodeProperties[] = [
name: 'emoji',
type: 'boolean',
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format',
description: 'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
@@ -1409,7 +1410,7 @@ export const messageFields: INodeProperties[] = [
name: 'emoji',
type: 'boolean',
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format',
description: 'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
@@ -1442,7 +1443,7 @@ export const messageFields: INodeProperties[] = [
name: 'emoji',
type: 'boolean',
default: false,
description: 'Indicates whether emojis in a text field should be escaped into the colon emoji format',
description: 'Whether emojis in a text field should be escaped into the colon emoji format',
},
],
},
@@ -1719,7 +1720,7 @@ export const messageFields: INodeProperties[] = [
name: 'short',
type: 'boolean',
default: true,
description: 'If items can be displayed next to each other',
description: 'Whether items can be displayed next to each other',
},
],
},