refactor(nodes-base): Apply lint rule node-param-display-name-not-first-position (#4073)

* 👕 Enable rule

* 👕 Apply rule
This commit is contained in:
Iván Ovejero 2022-09-12 09:25:39 +02:00 committed by GitHub
parent f6064ef278
commit 26b07e28f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 19 deletions

View file

@ -446,6 +446,7 @@ module.exports = {
'n8n-nodes-base/node-param-description-wrong-for-simplify': 'error', 'n8n-nodes-base/node-param-description-wrong-for-simplify': 'error',
'n8n-nodes-base/node-param-description-wrong-for-upsert': 'error', 'n8n-nodes-base/node-param-description-wrong-for-upsert': 'error',
'n8n-nodes-base/node-param-display-name-excess-inner-whitespace': 'error', 'n8n-nodes-base/node-param-display-name-excess-inner-whitespace': 'error',
'n8n-nodes-base/node-param-display-name-not-first-position': 'error',
'n8n-nodes-base/node-param-display-name-miscased': 'error', 'n8n-nodes-base/node-param-display-name-miscased': 'error',
'n8n-nodes-base/node-param-display-name-miscased-id': 'error', 'n8n-nodes-base/node-param-display-name-miscased-id': 'error',
'n8n-nodes-base/node-param-display-name-untrimmed': 'error', 'n8n-nodes-base/node-param-display-name-untrimmed': 'error',

View file

@ -75,8 +75,8 @@ export const binOperations: INodeProperties[] = [
// Properties of the `Bin` resource // Properties of the `Bin` resource
export const binFields: INodeProperties[] = [ export const binFields: INodeProperties[] = [
{ {
name: 'binId',
displayName: 'Bin ID', displayName: 'Bin ID',
name: 'binId',
type: 'string', type: 'string',
default: '', default: '',
required: true, required: true,

View file

@ -86,8 +86,8 @@ export const requestOperations: INodeProperties[] = [
// Properties of the `Request` resource // Properties of the `Request` resource
export const requestFields: INodeProperties[] = [ export const requestFields: INodeProperties[] = [
{ {
name: 'binId',
displayName: 'Bin ID', displayName: 'Bin ID',
name: 'binId',
type: 'string', type: 'string',
default: '', default: '',
required: true, required: true,
@ -100,8 +100,8 @@ export const requestFields: INodeProperties[] = [
description: 'Unique identifier for each bin', description: 'Unique identifier for each bin',
}, },
{ {
name: 'binContent',
displayName: 'Bin Content', displayName: 'Bin Content',
name: 'binContent',
type: 'string', type: 'string',
default: '', default: '',
typeOptions: { typeOptions: {
@ -122,8 +122,8 @@ export const requestFields: INodeProperties[] = [
}, },
}, },
{ {
name: 'requestId',
displayName: 'Request ID', displayName: 'Request ID',
name: 'requestId',
type: 'string', type: 'string',
default: '', default: '',
required: true, required: true,

View file

@ -168,8 +168,8 @@ const sendHtmlEmailFields: INodeProperties[] = [
displayName: 'Attachment Data', displayName: 'Attachment Data',
values: [ values: [
{ {
default: '',
displayName: 'Input Data Field Name', displayName: 'Input Data Field Name',
default: '',
name: 'binaryPropertyName', name: 'binaryPropertyName',
type: 'string', type: 'string',
description: description:
@ -196,8 +196,8 @@ const sendHtmlEmailFields: INodeProperties[] = [
displayName: 'Receipient', displayName: 'Receipient',
values: [ values: [
{ {
name: 'bcc',
displayName: 'Receipient', displayName: 'Receipient',
name: 'bcc',
type: 'string', type: 'string',
default: '', default: '',
}, },
@ -222,8 +222,8 @@ const sendHtmlEmailFields: INodeProperties[] = [
displayName: 'Receipient', displayName: 'Receipient',
values: [ values: [
{ {
name: 'cc',
displayName: 'Receipient', displayName: 'Receipient',
name: 'cc',
type: 'string', type: 'string',
default: '', default: '',
}, },
@ -249,8 +249,8 @@ const sendHtmlEmailFields: INodeProperties[] = [
name: 'tags', name: 'tags',
values: [ values: [
{ {
default: '',
displayName: 'Tag', displayName: 'Tag',
default: '',
name: 'tag', name: 'tag',
type: 'string', type: 'string',
}, },
@ -398,8 +398,8 @@ const sendHtmlTemplateEmailFields: INodeProperties[] = [
name: 'tags', name: 'tags',
values: [ values: [
{ {
default: '',
displayName: 'Tag', displayName: 'Tag',
default: '',
name: 'tag', name: 'tag',
type: 'string', type: 'string',
}, },

View file

@ -40,8 +40,8 @@ export class SendInBlueTrigger implements INodeType {
], ],
properties: [ properties: [
{ {
default: 'transactional',
displayName: 'Resource', displayName: 'Resource',
default: 'transactional',
name: 'type', name: 'type',
options: [ options: [
{ name: 'Inbound', value: 'inbound' }, { name: 'Inbound', value: 'inbound' },

View file

@ -377,18 +377,18 @@ export class Spotify implements INodeType {
description: 'Get a playlist by URI or ID', description: 'Get a playlist by URI or ID',
action: 'Get a playlist', action: 'Get a playlist',
}, },
{
name: "Get the User's Playlists",
value: 'getUserPlaylists',
description: "Get a user's playlists",
action: "Get a user's playlists",
},
{ {
name: 'Get Tracks', name: 'Get Tracks',
value: 'getTracks', value: 'getTracks',
description: "Get a playlist's tracks by URI or ID", description: "Get a playlist's tracks by URI or ID",
action: "Get a playlist's tracks by URI or ID", action: "Get a playlist's tracks by URI or ID",
}, },
{
name: `Get the User's Playlists`,
value: 'getUserPlaylists',
description: "Get a user's playlists",
action: "Get a user's playlists",
},
{ {
name: 'Remove an Item', name: 'Remove an Item',
value: 'delete', value: 'delete',
@ -396,7 +396,7 @@ export class Spotify implements INodeType {
action: 'Remove an item from a playlist', action: 'Remove an item from a playlist',
}, },
{ {
name: `Search`, name: 'Search',
value: 'search', value: 'search',
description: 'Search playlists by keyword', description: 'Search playlists by keyword',
action: 'Search playlists by keyword', action: 'Search playlists by keyword',
@ -1322,4 +1322,4 @@ export class Spotify implements INodeType {
return this.prepareOutputData(returnData); return this.prepareOutputData(returnData);
} }
} }

View file

@ -518,8 +518,8 @@ export const observableFields: INodeProperties[] = [
default: false, default: false,
}, },
{ {
name: 'Status',
displayName: 'Status', displayName: 'Status',
name: 'Status',
type: 'options', type: 'options',
default: '', default: '',
options: [ options: [