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

@@ -67,7 +67,7 @@ export const productFields: INodeProperties[] = [
},
},
default: '',
description: 'The name of the product.',
description: 'The name of the product',
required: true,
},
{
@@ -116,7 +116,7 @@ export const productFields: INodeProperties[] = [
name: 'handle',
type: 'string',
default: '',
description: `A unique human-friendly string for the product. Automatically generated from the product's title. Used by the Liquid templating language to refer to objects.`,
description: 'A unique human-friendly string for the product. Automatically generated from the product\'s title. Used by the Liquid templating language to refer to objects.',
},
{
displayName: 'Images',
@@ -127,35 +127,35 @@ export const productFields: INodeProperties[] = [
multipleValues: true,
},
default: {},
description: 'A list of product image objects, each one representing an image associated with the product.',
description: 'A list of product image objects, each one representing an image associated with the product',
options: [
{
displayName: 'Created At',
name: 'created_at',
type: 'dateTime',
default: '',
description: 'The date and time when the product image was created.',
description: 'The date and time when the product image was created',
},
{
displayName: 'ID',
name: 'id',
type: 'number',
default: '',
description: 'A unique numeric identifier for the product image.',
description: 'A unique numeric identifier for the product image',
},
{
displayName: 'Position',
name: 'position',
type: 'number',
default: '',
description: `The order of the product image in the list. The first product image is at position 1 and is the "main" image for the product.`,
description: 'The order of the product image in the list. The first product image is at position 1 and is the "main" image for the product.',
},
{
displayName: 'Product ID',
name: 'product_id',
type: 'number',
default: '',
description: 'The id of the product associated with the image.',
description: 'The ID of the product associated with the image',
},
{
displayName: 'Variant IDs',
@@ -165,7 +165,7 @@ export const productFields: INodeProperties[] = [
multipleValues: true,
},
default: '',
description: 'An array of variant ids associated with the image.',
description: 'An array of variant IDs associated with the image',
},
{
displayName: 'Source',
@@ -179,21 +179,21 @@ export const productFields: INodeProperties[] = [
name: 'width',
type: 'number',
default: '',
description: 'Width dimension of the image which is determined on upload.',
description: 'Width dimension of the image which is determined on upload',
},
{
displayName: 'Height',
name: 'height',
type: 'number',
default: '',
description: 'Height dimension of the image which is determined on upload.',
description: 'Height dimension of the image which is determined on upload',
},
{
displayName: 'Updated At',
name: 'updated_at',
type: 'dateTime',
default: '',
description: 'The date and time when the product image was last modified.',
description: 'The date and time when the product image was last modified',
},
],
},
@@ -206,7 +206,7 @@ export const productFields: INodeProperties[] = [
multipleValues: true,
},
default: {},
description: `The custom product property names like Size, Color, and Material. You can add up to 3 options of up to 255 characters each.`,
description: 'The custom product property names like Size, Color, and Material. You can add up to 3 options of up to 255 characters each.',
options: [
{
displayName: 'Option',
@@ -217,14 +217,14 @@ export const productFields: INodeProperties[] = [
name: 'name',
type: 'string',
default: '',
description: `Option\'s name.`,
description: 'Option\'s name',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: `Option\'s values.`,
description: 'Option\'s values',
},
],
},
@@ -235,7 +235,7 @@ export const productFields: INodeProperties[] = [
name: 'product_type',
type: 'string',
default: '',
description: 'A categorization for the product used for filtering and searching products.',
description: 'A categorization for the product used for filtering and searching products',
},
{
displayName: 'Published At',
@@ -253,12 +253,12 @@ export const productFields: INodeProperties[] = [
{
name: 'Global',
value: 'global',
description: 'The product is published to both the Online Store channel and the Point of Sale channel.',
description: 'The product is published to both the Online Store channel and the Point of Sale channel',
},
{
name: 'Web',
value: 'web',
description: 'The product is published to the Online Store channel but not published to the Point of Sale channel.',
description: 'The product is published to the Online Store channel but not published to the Point of Sale channel',
},
],
},
@@ -301,7 +301,7 @@ export const productFields: INodeProperties[] = [
name: 'vendor',
type: 'string',
default: '',
description: 'The name of the product\'s vendor.',
description: 'The name of the product\'s vendor',
},
],
},
@@ -334,7 +334,7 @@ export const productFields: INodeProperties[] = [
name: 'handle',
type: 'string',
default: '',
description: `A unique human-friendly string for the product. Automatically generated from the product's title. Used by the Liquid templating language to refer to objects.`,
description: 'A unique human-friendly string for the product. Automatically generated from the product\'s title. Used by the Liquid templating language to refer to objects.',
},
{
displayName: 'Images',
@@ -345,35 +345,35 @@ export const productFields: INodeProperties[] = [
multipleValues: true,
},
default: {},
description: 'A list of product image objects, each one representing an image associated with the product.',
description: 'A list of product image objects, each one representing an image associated with the product',
options: [
{
displayName: 'Created At',
name: 'created_at',
type: 'dateTime',
default: '',
description: 'The date and time when the product image was created.',
description: 'The date and time when the product image was created',
},
{
displayName: 'ID',
name: 'id',
type: 'number',
default: '',
description: 'A unique numeric identifier for the product image.',
description: 'A unique numeric identifier for the product image',
},
{
displayName: 'Position',
name: 'position',
type: 'number',
default: '',
description: `The order of the product image in the list. The first product image is at position 1 and is the "main" image for the product.`,
description: 'The order of the product image in the list. The first product image is at position 1 and is the "main" image for the product.',
},
{
displayName: 'Product ID',
name: 'product_id',
type: 'number',
default: '',
description: 'The id of the product associated with the image.',
description: 'The ID of the product associated with the image',
},
{
displayName: 'Variant IDs',
@@ -383,7 +383,7 @@ export const productFields: INodeProperties[] = [
multipleValues: true,
},
default: '',
description: 'An array of variant ids associated with the image.',
description: 'An array of variant IDs associated with the image',
},
{
displayName: 'Source',
@@ -397,21 +397,21 @@ export const productFields: INodeProperties[] = [
name: 'width',
type: 'number',
default: '',
description: 'Width dimension of the image which is determined on upload.',
description: 'Width dimension of the image which is determined on upload',
},
{
displayName: 'Height',
name: 'height',
type: 'number',
default: '',
description: 'Height dimension of the image which is determined on upload.',
description: 'Height dimension of the image which is determined on upload',
},
{
displayName: 'Updated At',
name: 'updated_at',
type: 'dateTime',
default: '',
description: 'The date and time when the product image was last modified.',
description: 'The date and time when the product image was last modified',
},
],
},
@@ -424,7 +424,7 @@ export const productFields: INodeProperties[] = [
multipleValues: true,
},
default: {},
description: `The custom product property names like Size, Color, and Material. You can add up to 3 options of up to 255 characters each.`,
description: 'The custom product property names like Size, Color, and Material. You can add up to 3 options of up to 255 characters each.',
options: [
{
displayName: 'Option',
@@ -435,14 +435,14 @@ export const productFields: INodeProperties[] = [
name: 'name',
type: 'string',
default: '',
description: `Option\'s name.`,
description: 'Option\'s name',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: `Option\'s values.`,
description: 'Option\'s values',
},
],
},
@@ -453,7 +453,7 @@ export const productFields: INodeProperties[] = [
name: 'product_type',
type: 'string',
default: '',
description: 'A categorization for the product used for filtering and searching products.',
description: 'A categorization for the product used for filtering and searching products',
},
{
displayName: 'Published At',
@@ -471,12 +471,12 @@ export const productFields: INodeProperties[] = [
{
name: 'Global',
value: 'global',
description: 'The product is published to both the Online Store channel and the Point of Sale channel.',
description: 'The product is published to both the Online Store channel and the Point of Sale channel',
},
{
name: 'Web',
value: 'web',
description: 'The product is published to the Online Store channel but not published to the Point of Sale channel.',
description: 'The product is published to the Online Store channel but not published to the Point of Sale channel',
},
],
},
@@ -499,7 +499,7 @@ export const productFields: INodeProperties[] = [
name: 'title',
type: 'string',
default: '',
description: 'The name of the product.',
description: 'The name of the product',
},
// {
// displayName: 'Variants',
@@ -526,7 +526,7 @@ export const productFields: INodeProperties[] = [
name: 'vendor',
type: 'string',
default: '',
description: 'The name of the product\'s vendor.',
description: 'The name of the product\'s vendor',
},
],
},
@@ -592,7 +592,7 @@ export const productFields: INodeProperties[] = [
name: 'fields',
type: 'string',
default: '',
description: 'Fields the product will return, formatted as a string of comma-separated values. By default all the fields are returned',
description: 'Fields the product will return, formatted as a string of comma-separated values. By default all the fields are returned.',
},
],
},
@@ -614,7 +614,7 @@ export const productFields: 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',
@@ -638,7 +638,7 @@ export const productFields: INodeProperties[] = [
maxValue: 250,
},
default: 50,
description: 'How many results to return.',
description: 'Max number of results to return',
},
{
displayName: 'Additional Fields',
@@ -662,14 +662,14 @@ export const productFields: INodeProperties[] = [
name: 'collection_id',
type: 'string',
default: '',
description: 'Filter results by product collection ID.',
description: 'Filter results by product collection ID',
},
{
displayName: 'Created At Max',
name: 'created_at_max',
type: 'dateTime',
default: '',
description: 'Show products created before date.',
description: 'Show products created before date',
},
{
displayName: 'Created At Min',
@@ -683,49 +683,49 @@ export const productFields: INodeProperties[] = [
name: 'fields',
type: 'string',
default: '',
description: 'Show only certain fields, specified by a comma-separated list of field names.',
description: 'Show only certain fields, specified by a comma-separated list of field names',
},
{
displayName: 'Handle',
name: 'handle',
type: 'string',
default: '',
description: 'Filter results by product handle.',
description: 'Filter results by product handle',
},
{
displayName: 'IDs',
name: 'ids',
type: 'string',
default: '',
description: 'Return only products specified by a comma-separated list of product IDs.',
description: 'Return only products specified by a comma-separated list of product IDs',
},
{
displayName: 'Presentment Currencies',
name: 'presentment_currencies',
type: 'string',
default: '',
description: 'Return presentment prices in only certain currencies, specified by a comma-separated list of ISO 4217 currency codes.',
description: 'Return presentment prices in only certain currencies, specified by a comma-separated list of ISO 4217 currency codes',
},
{
displayName: 'Product Type',
name: 'product_type',
type: 'string',
default: '',
description: 'Filter results by product type.',
description: 'Filter results by product type',
},
{
displayName: 'Published At Max',
name: 'published_at_max',
type: 'dateTime',
default: '',
description: 'Show products published before date.',
description: 'Show products published before date',
},
{
displayName: 'Published At Min',
name: 'published_at_min',
type: 'dateTime',
default: '',
description: 'Show products published after date.',
description: 'Show products published after date',
},
{
displayName: 'Published Status',
@@ -735,49 +735,49 @@ export const productFields: INodeProperties[] = [
{
name: 'Any',
value: 'any',
description: 'Show all products.',
description: 'Show all products',
},
{
name: 'Published',
value: 'published',
description: 'Show only published products.',
description: 'Show only published products',
},
{
name: 'Unpublished',
value: 'unpublished',
description: 'Show only unpublished products.',
description: 'Show only unpublished products',
},
],
default: 'any',
description: 'Return products by their published status.',
description: 'Return products by their published status',
},
{
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'Filter results by product title.',
description: 'Filter results by product title',
},
{
displayName: 'Updated At Max',
name: 'updated_at_max',
type: 'dateTime',
default: '',
description: 'Show products last updated before date.',
description: 'Show products last updated before date',
},
{
displayName: 'Updated At Min',
name: 'updated_at_min',
type: 'dateTime',
default: '',
description: 'Show products last updated after date.',
description: 'Show products last updated after date',
},
{
displayName: 'Vendor',
name: 'vendor',
type: 'string',
default: '',
description: 'Filter results by product vendor.',
description: 'Filter results by product vendor',
},
],
},