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

@@ -73,7 +73,7 @@ export const coinFields: INodeProperties[] = [
value: 'coinId',
},
{
name: 'Contract address',
name: 'Contract Address',
value: 'contractAddress',
},
],
@@ -93,7 +93,7 @@ export const coinFields: INodeProperties[] = [
description: 'Search by coin ID or contract address',
},
{
displayName: 'Coin ID',
displayName: 'Coin Name or ID',
name: 'coinId',
required: true,
type: 'options',
@@ -114,7 +114,7 @@ export const coinFields: INodeProperties[] = [
placeholder: 'bitcoin',
},
{
displayName: 'Base Currency',
displayName: 'Base Currency Name or ID',
name: 'baseCurrency',
required: true,
type: 'options',
@@ -133,10 +133,10 @@ export const coinFields: INodeProperties[] = [
},
},
default: '',
description: 'The first currency in the pair. For BTC:ETH this is BTC.',
description: 'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Base Currency',
displayName: 'Base Currency Name or ID',
name: 'baseCurrency',
required: true,
type: 'options',
@@ -155,10 +155,10 @@ export const coinFields: INodeProperties[] = [
},
},
default: '',
description: 'The first currency in the pair. For BTC:ETH this is BTC.',
description: 'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Coin ID',
displayName: 'Coin Name or ID',
name: 'coinId',
required: true,
type: 'options',
@@ -234,7 +234,7 @@ export const coinFields: INodeProperties[] = [
description: 'The ID of the platform issuing tokens',
},
{
displayName: 'Contract address',
displayName: 'Contract Address',
name: 'contractAddress',
required: true,
type: 'string',
@@ -256,7 +256,7 @@ export const coinFields: INodeProperties[] = [
description: 'Token\'s contract address',
},
{
displayName: 'Contract addresses',
displayName: 'Contract Addresses',
name: 'contractAddresses',
required: true,
type: 'string',
@@ -277,7 +277,7 @@ export const coinFields: INodeProperties[] = [
description: 'The contract address of tokens, comma-separated',
},
{
displayName: 'Base Currency',
displayName: 'Base Currency Name or ID',
name: 'baseCurrency',
required: true,
type: 'options',
@@ -303,10 +303,10 @@ export const coinFields: INodeProperties[] = [
},
},
default: '',
description: 'The first currency in the pair. For BTC:ETH this is BTC.',
description: 'The first currency in the pair. For BTC:ETH this is BTC. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Quote Currency',
displayName: 'Quote Currency Name or ID',
name: 'quoteCurrency',
required: true,
type: 'options',
@@ -325,7 +325,7 @@ export const coinFields: INodeProperties[] = [
},
},
default: '',
description: 'The second currency in the pair. For BTC:ETH this is ETH.',
description: 'The second currency in the pair. For BTC:ETH this is ETH. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Quote Currencies',
@@ -349,10 +349,11 @@ export const coinFields: INodeProperties[] = [
description: 'The second currency in the pair. For BTC:ETH this is ETH.',
},
{
displayName: 'Range (days)',
displayName: 'Range (Days)',
name: 'days',
required: true,
type: 'options',
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
options: [
{
name: '1',
@@ -507,29 +508,13 @@ export const coinFields: INodeProperties[] = [
name: 'order',
type: 'options',
options: [
{
name: 'Market Cap Desc',
value: 'market_cap_desc',
},
{
name: 'Gecko Desc',
value: 'gecko_desc',
},
{
name: 'Gecko Asc',
value: 'gecko_asc',
},
{
name: 'Market Cap Asc',
value: 'market_cap_asc',
},
{
name: 'Volume Asc',
value: 'volume_asc',
},
{
name: 'Volume Desc',
value: 'volume_desc',
name: 'Gecko Desc',
value: 'gecko_desc',
},
{
name: 'ID Asc',
@@ -539,6 +524,22 @@ export const coinFields: INodeProperties[] = [
name: 'ID Desc',
value: 'id_desc',
},
{
name: 'Market Cap Asc',
value: 'market_cap_asc',
},
{
name: 'Market Cap Desc',
value: 'market_cap_desc',
},
{
name: 'Volume Asc',
value: 'volume_asc',
},
{
name: 'Volume Desc',
value: 'volume_desc',
},
],
default: '',
description: 'Sort results by field',
@@ -732,14 +733,14 @@ export const coinFields: INodeProperties[] = [
},
options: [
{
displayName: 'Community data',
displayName: 'Community Data',
name: 'community_data',
type: 'boolean',
default: false,
description: 'Include community data',
},
{
displayName: 'Developer data',
displayName: 'Developer Data',
name: 'developer_data',
type: 'boolean',
default: false,
@@ -753,7 +754,7 @@ export const coinFields: INodeProperties[] = [
description: 'Include all localized languages in response',
},
{
displayName: 'Market data',
displayName: 'Market Data',
name: 'market_data',
type: 'boolean',
default: false,

View File

@@ -86,41 +86,42 @@ export const eventFields: INodeProperties[] = [
},
options: [
{
displayName: 'Country code',
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName: 'Country Code',
name: 'country_code',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getEventCountryCodes',
},
default: '',
description: 'Country code of event',
description: 'Country code of event. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'From date',
displayName: 'From Date',
name: 'from_date',
type: 'dateTime',
default: '',
description: 'Lists events after this date',
},
{
displayName: 'To date',
displayName: 'To Date',
name: 'to_date',
type: 'dateTime',
default: '',
description: 'Lists events before this date',
},
{
displayName: 'Type',
displayName: 'Type Name or ID',
name: 'type',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getEventTypes',
},
default: '',
description: 'Type of event',
description: 'Type of event. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Upcoming events only',
displayName: 'Upcoming Events Only',
name: 'upcoming_events_only',
type: 'boolean',
default: true,