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

@@ -65,7 +65,7 @@ export const productFields: INodeProperties[] = [
],
},
},
description: 'Product name.',
description: 'Product name',
},
{
displayName: 'Additional Fields',
@@ -158,14 +158,14 @@ export const productFields: INodeProperties[] = [
name: 'dateOnSaleFrom',
type: 'dateTime',
default: '',
description: `Start date of sale price, in the site's timezone.`,
description: 'Start date of sale price, in the site\'s timezone',
},
{
displayName: 'Date On Sale To',
name: 'dateOnSaleTo',
type: 'dateTime',
default: '',
description: `Ennd date of sale price, in the site's timezone.`,
description: 'Ennd date of sale price, in the site\'s timezone',
},
{
displayName: 'Description',
@@ -175,14 +175,14 @@ export const productFields: INodeProperties[] = [
alwaysOpenEditWindow: true,
},
default: '',
description: 'Product description.',
description: 'Product description',
},
{
displayName: 'Downloadable',
name: 'downloadable',
type: 'boolean',
default: false,
description: 'if the product is downloadable.',
description: 'if the product is downloadable',
},
{
displayName: 'External URL',
@@ -210,77 +210,77 @@ export const productFields: INodeProperties[] = [
name: 'menuOrder',
type: 'number',
default: 1,
description: 'Menu order, used to custom sort products.',
description: 'Menu order, used to custom sort products',
},
{
displayName: 'Parent ID',
name: 'parentId',
type: 'string',
default: '',
description: 'Product parent ID.',
description: 'Product parent ID',
},
{
displayName: 'Purchase Note',
name: 'purchaseNote',
type: 'string',
default: '',
description: 'Optional note to send the customer after purchase.',
description: 'Optional note to send the customer after purchase',
},
{
displayName: 'Regular Price',
name: 'regularPrice',
type: 'string',
default: '',
description: 'Product regular price.',
description: 'Product regular price',
},
{
displayName: 'Reviews Allowed',
name: 'reviewsAllowed',
type: 'boolean',
default: true,
description: 'Allow reviews.',
description: 'Allow reviews',
},
{
displayName: 'Sale Price',
name: 'salePrice',
type: 'string',
default: '',
description: 'Product sale price.',
description: 'Product sale price',
},
{
displayName: 'Shipping Class',
name: 'shippingClass',
type: 'string',
default: '',
description: 'Shipping class slug.',
description: 'Shipping class slug',
},
{
displayName: 'Short Description',
name: 'shortDescription',
type: 'string',
default: '',
description: 'Product short description.',
description: 'Product short description',
},
{
displayName: 'SKU',
name: 'sku',
type: 'string',
default: '',
description: 'Unique identifier.',
description: 'Unique identifier',
},
{
displayName: 'Slug',
name: 'slug',
type: 'string',
default: '',
description: 'Product slug.',
description: 'Product slug',
},
{
displayName: 'Sold Individually',
name: 'soldIndividually',
type: 'boolean',
default: false,
description: 'Allow one item to be bought in a single order.',
description: 'Allow one item to be bought in a single order',
},
{
displayName: 'Status',
@@ -305,7 +305,7 @@ export const productFields: INodeProperties[] = [
},
],
default: 'publish',
description: 'A named status for the product.',
description: 'A named status for the product',
},
{
displayName: 'Stock Quantity',
@@ -407,14 +407,14 @@ export const productFields: INodeProperties[] = [
name: 'virtual',
type: 'boolean',
default: false,
description: 'If the product is virtual.',
description: 'If the product is virtual',
},
{
displayName: 'Weight',
name: 'weight',
type: 'string',
default: '',
description: 'Product weight.',
description: 'Product weight',
},
],
},
@@ -448,21 +448,21 @@ export const productFields: INodeProperties[] = [
name: 'height',
type: 'string',
default: '',
description: 'Product height.',
description: 'Product height',
},
{
displayName: 'Length',
name: 'length',
type: 'string',
default: '',
description: 'Product length.',
description: 'Product length',
},
{
displayName: 'Width',
name: 'width',
type: 'string',
default: '',
description: 'Product width.',
description: 'Product width',
},
],
},
@@ -498,21 +498,21 @@ export const productFields: INodeProperties[] = [
name: 'alt',
type: 'string',
default: '',
description: 'Image alternative text.',
description: 'Image alternative text',
},
{
displayName: 'Src',
name: 'src',
type: 'string',
default: '',
description: 'Image URL.',
description: 'Image URL',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Image name.',
description: 'Image name',
},
],
},
@@ -548,14 +548,14 @@ export const productFields: INodeProperties[] = [
name: 'key',
type: 'string',
default: '',
description: 'Name of the metadata key to add.',
description: 'Name of the metadata key to add',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'Value to set for the metadata key.',
description: 'Value to set for the metadata key',
},
],
},
@@ -671,14 +671,14 @@ export const productFields: INodeProperties[] = [
name: 'dateOnSaleFrom',
type: 'dateTime',
default: '',
description: `Start date of sale price, in the site's timezone.`,
description: 'Start date of sale price, in the site\'s timezone',
},
{
displayName: 'Date On Sale To',
name: 'dateOnSaleTo',
type: 'dateTime',
default: '',
description: `Ennd date of sale price, in the site's timezone.`,
description: 'Ennd date of sale price, in the site\'s timezone',
},
{
displayName: 'Description',
@@ -688,14 +688,14 @@ export const productFields: INodeProperties[] = [
alwaysOpenEditWindow: true,
},
default: '',
description: 'Product description.',
description: 'Product description',
},
{
displayName: 'Downloadable',
name: 'downloadable',
type: 'boolean',
default: false,
description: 'if the product is downloadable.',
description: 'if the product is downloadable',
},
{
displayName: 'External URL',
@@ -723,84 +723,84 @@ export const productFields: INodeProperties[] = [
name: 'menuOrder',
type: 'number',
default: 1,
description: 'Menu order, used to custom sort products.',
description: 'Menu order, used to custom sort products',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Product name.',
description: 'Product name',
},
{
displayName: 'Parent ID',
name: 'parentId',
type: 'string',
default: '',
description: 'Product parent ID.',
description: 'Product parent ID',
},
{
displayName: 'Purchase Note',
name: 'purchaseNote',
type: 'string',
default: '',
description: 'Optional note to send the customer after purchase.',
description: 'Optional note to send the customer after purchase',
},
{
displayName: 'Regular Price',
name: 'regularPrice',
type: 'string',
default: '',
description: 'Product regular price.',
description: 'Product regular price',
},
{
displayName: 'Reviews Allowed',
name: 'reviewsAllowed',
type: 'boolean',
default: true,
description: 'Allow reviews.',
description: 'Allow reviews',
},
{
displayName: 'Sale Price',
name: 'salePrice',
type: 'string',
default: '',
description: 'Product sale price.',
description: 'Product sale price',
},
{
displayName: 'Shipping Class',
name: 'shippingClass',
type: 'string',
default: '',
description: 'Shipping class slug.',
description: 'Shipping class slug',
},
{
displayName: 'Short Description',
name: 'shortDescription',
type: 'string',
default: '',
description: 'Product short description.',
description: 'Product short description',
},
{
displayName: 'SKU',
name: 'sku',
type: 'string',
default: '',
description: 'Unique identifier.',
description: 'Unique identifier',
},
{
displayName: 'Slug',
name: 'slug',
type: 'string',
default: '',
description: 'Product slug.',
description: 'Product slug',
},
{
displayName: 'Sold Individually',
name: 'soldIndividually',
type: 'boolean',
default: false,
description: 'Allow one item to be bought in a single order.',
description: 'Allow one item to be bought in a single order',
},
{
displayName: 'Status',
@@ -825,7 +825,7 @@ export const productFields: INodeProperties[] = [
},
],
default: 'publish',
description: 'A named status for the product.',
description: 'A named status for the product',
},
{
displayName: 'Stock Quantity',
@@ -927,14 +927,14 @@ export const productFields: INodeProperties[] = [
name: 'virtual',
type: 'boolean',
default: false,
description: 'If the product is virtual.',
description: 'If the product is virtual',
},
{
displayName: 'Weight',
name: 'weight',
type: 'string',
default: '',
description: 'Product weight.',
description: 'Product weight',
},
],
},
@@ -968,21 +968,21 @@ export const productFields: INodeProperties[] = [
name: 'height',
type: 'string',
default: '',
description: 'Product height.',
description: 'Product height',
},
{
displayName: 'Length',
name: 'length',
type: 'string',
default: '',
description: 'Product length.',
description: 'Product length',
},
{
displayName: 'Width',
name: 'width',
type: 'string',
default: '',
description: 'Product width.',
description: 'Product width',
},
],
},
@@ -1018,21 +1018,21 @@ export const productFields: INodeProperties[] = [
name: 'alt',
type: 'string',
default: '',
description: 'Image alternative text.',
description: 'Image alternative text',
},
{
displayName: 'Src',
name: 'src',
type: 'string',
default: '',
description: 'Image URL.',
description: 'Image URL',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Image name.',
description: 'Image name',
},
],
},
@@ -1068,14 +1068,14 @@ export const productFields: INodeProperties[] = [
name: 'key',
type: 'string',
default: '',
description: 'Name of the metadata key to add.',
description: 'Name of the metadata key to add',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'Value to set for the metadata key.',
description: 'Value to set for the metadata key',
},
],
},
@@ -1118,7 +1118,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',
@@ -1142,7 +1142,7 @@ export const productFields: INodeProperties[] = [
maxValue: 100,
},
default: 50,
description: 'How many results to return.',
description: 'Max number of results to return',
},
{
displayName: 'Options',
@@ -1166,7 +1166,7 @@ export const productFields: INodeProperties[] = [
name: 'after',
type: 'dateTime',
default: '',
description: 'Limit response to resources published after a given ISO8601 compliant date.',
description: 'Limit response to resources published after a given ISO8601 compliant date',
},
{
displayName: 'Before',
@@ -1183,7 +1183,7 @@ export const productFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getCategories',
},
description: 'Limit result set to products assigned a specific category ID.',
description: 'Limit result set to products assigned a specific category ID',
},
{
displayName: 'Context',
@@ -1204,28 +1204,28 @@ export const productFields: INodeProperties[] = [
},
],
default: 'view',
description: 'Scope under which the request is made; determines fields present in response.',
description: 'Scope under which the request is made; determines fields present in response',
},
{
displayName: 'Featured',
name: 'featured',
type: 'boolean',
default: false,
description: 'Limit result set to featured products.',
description: 'Limit result set to featured products',
},
{
displayName: 'Max Price',
name: 'maxPrice',
type: 'string',
default: '',
description: 'Limit result set to products based on a maximun price.',
description: 'Limit result set to products based on a maximun price',
},
{
displayName: 'Min Price',
name: 'minPrice',
type: 'string',
default: '',
description: 'Limit result set to products based on a minimum price.',
description: 'Limit result set to products based on a minimum price',
},
{
displayName: 'Order',
@@ -1242,7 +1242,7 @@ export const productFields: INodeProperties[] = [
},
],
default: 'desc',
description: 'Order sort attribute ascending or descending.',
description: 'Order sort attribute ascending or descending',
},
{
displayName: 'Order By',
@@ -1271,28 +1271,28 @@ export const productFields: INodeProperties[] = [
},
],
default: 'id',
description: 'Sort collection by object attribute.',
description: 'Sort collection by object attribute',
},
{
displayName: 'Search',
name: 'search',
type: 'string',
default: '',
description: 'Limit results to those matching a string.',
description: 'Limit results to those matching a string',
},
{
displayName: 'SKU',
name: 'sku',
type: 'string',
default: '',
description: 'Limit result set to products with a specific SKU.',
description: 'Limit result set to products with a specific SKU',
},
{
displayName: 'Slug',
name: 'slug',
type: 'string',
default: '',
description: 'Limit result set to products with a specific slug.',
description: 'Limit result set to products with a specific slug',
},
{
displayName: 'Status',
@@ -1321,7 +1321,7 @@ export const productFields: INodeProperties[] = [
},
],
default: 'any',
description: 'Limit result set to products assigned a specific status.',
description: 'Limit result set to products assigned a specific status',
},
{
displayName: 'Stock Status',
@@ -1352,7 +1352,7 @@ export const productFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTags',
},
description: 'Limit result set to products assigned a specific tag ID.',
description: 'Limit result set to products assigned a specific tag ID',
},
{
displayName: 'Tax Class',