👕 Apply node-param-default-wrong-for-multi-options (#3185)

This commit is contained in:
Iván Ovejero 2022-04-22 13:11:40 +02:00 committed by GitHub
parent c67d05724a
commit ffc1c05ef4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 41 additions and 40 deletions

View file

@ -383,6 +383,7 @@ module.exports = {
"n8n-nodes-base/node-param-default-wrong-for-collection": "error",
"n8n-nodes-base/node-param-default-wrong-for-boolean": "error",
"n8n-nodes-base/node-param-default-wrong-for-fixed-collection": "error",
"n8n-nodes-base/node-param-default-wrong-for-multi-options": "error",
}
},
],

View file

@ -135,7 +135,7 @@ export const documentFields: INodeProperties[] = [
'docType',
],
},
default: '',
default: [],
description: 'Comma-separated list of fields to return.',
placeholder: 'name,country',
},

View file

@ -84,7 +84,7 @@ export class FormIoTrigger implements INodeType {
},
],
required: true,
default: '',
default: [],
},
{
displayName: 'Simplify Response',

View file

@ -182,7 +182,7 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTags',
},
default: '',
default: [],
},
],
},
@ -637,7 +637,7 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTags',
},
default: '',
default: [],
},
],
},

View file

@ -704,7 +704,7 @@ export const contactFields: INodeProperties[] = [
],
},
},
default: '',
default: [],
description: 'A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas.',
},
{
@ -884,7 +884,7 @@ export const contactFields: INodeProperties[] = [
],
},
},
default: '',
default: [],
description: 'A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas.',
},
{
@ -1128,7 +1128,7 @@ export const contactFields: INodeProperties[] = [
],
},
},
default: '',
default: [],
description: 'A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas.',
},
{

View file

@ -59,7 +59,7 @@ export const messageLabelFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getLabels',
},
default: '',
default: [],
required: true,
displayOptions: {
show: {

View file

@ -284,7 +284,7 @@ export class HackerNews implements INodeType {
description: 'Returns query results filtered by Front Page tag',
},
],
default: '',
default: [],
description: 'Tags for filtering the results of the query.',
},
],

View file

@ -895,7 +895,7 @@ export const companyFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getCompanyProperties',
},
default: '',
default: [],
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your companies.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
},
{
@ -1095,7 +1095,7 @@ export const companyFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getCompanyProperties',
},
default: '',
default: [],
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
},
],

View file

@ -396,7 +396,7 @@ export const contactFields: INodeProperties[] = [
],
},
},
default: '',
default: [],
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
},
{
@ -576,7 +576,7 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getContactProperties',
},
default: '',
default: [],
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
},
{
@ -699,7 +699,7 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getContactProperties',
},
default: '',
default: [],
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
},
{
@ -844,7 +844,7 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getContactProperties',
},
default: '',
default: [],
description: `<p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>`,
},
{

View file

@ -679,7 +679,7 @@ export const issueFields: INodeProperties[] = [
displayName: 'Expand',
name: 'expand',
type: 'multiOptions',
default: '',
default: [],
options: [
{
name: 'Changelog',

View file

@ -438,7 +438,7 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTags',
},
default: '',
default: [],
},
{
displayName: 'Social Media',
@ -937,7 +937,7 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTags',
},
default: '',
default: [],
},
{
displayName: 'Title',

View file

@ -178,7 +178,7 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getAccountFields',
},
default: '',
default: [],
},
{
displayName: 'Expand Fields',
@ -187,7 +187,7 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getExpandableAccountFields',
},
default: '',
default: [],
},
],
},
@ -266,7 +266,7 @@ export const accountFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getAccountFields',
},
default: '',
default: [],
description: 'Fields the response will include',
},
],

View file

@ -93,7 +93,7 @@ export const couponFields: INodeProperties[] = [
],
},
},
default: '',
default: [],
description: 'Comma-separated list of product IDs. Required if coupon_type is product.',
required: true,
},

View file

@ -370,7 +370,7 @@ export const incidentFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getServices',
},
default: '',
default: [],
description: 'Returns only the incidents associated with the passed service(s).',
},
{
@ -406,7 +406,7 @@ export const incidentFields: INodeProperties[] = [
value: 'triggered',
},
],
default: '',
default: [],
description: 'Returns only the incidents associated with the passed service(s).',
},
{
@ -447,7 +447,7 @@ export const incidentFields: INodeProperties[] = [
value: 'low',
},
],
default: '',
default: [],
description: 'urgencies of the incidents to be returned. Defaults to all urgencies. Account must have the urgencies ability to do this',
},
{

View file

@ -215,7 +215,7 @@ export const metricFields: INodeProperties[] = [
description: `How much upgrades and plan length increases affect your MRR`,
},
],
default: '',
default: [],
description: 'Comma-separated list of metric trends to return (the default is to return all metric)',
},
{
@ -431,7 +431,7 @@ export const metricFields: INodeProperties[] = [
description: `Net change in revenue for this plan`,
},
],
default: '',
default: [],
description: 'Comma-separated list of metric trends to return (the default is to return all metric)',
},
],

View file

@ -113,7 +113,7 @@ export class Pushcut implements INodeType {
typeOptions: {
loadOptionsMethod: 'getDevices',
},
default: '',
default: [],
description: 'List of devices this notification is sent to. (default is all devices)',
},
{

View file

@ -102,7 +102,7 @@ export const transactionFields: INodeProperties[] = [
displayName: 'Columns',
name: 'columns',
type: 'multiOptions',
default: '',
default: [],
description: 'Columns to return',
options: TRANSACTION_REPORT_COLUMNS,
},

View file

@ -507,7 +507,7 @@ export const customObjectFields: INodeProperties[] = [
'customObject',
],
},
default: '',
default: [],
description: 'Fields to include separated by ,',
},
],

View file

@ -242,7 +242,7 @@ export const contactFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getListIds',
},
default: '',
default: [],
description: 'ID of the field to set.',
},
],

View file

@ -251,7 +251,7 @@ export const releaseFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getProjects',
},
default: '',
default: [],
displayOptions: {
show: {
resource: [

View file

@ -238,7 +238,7 @@ export const channelFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
default: [],
displayOptions: {
show: {
operation: [

View file

@ -263,7 +263,7 @@ export const monitorFields: INodeProperties[] = [
displayName: 'Statuses',
name: 'statuses',
type: 'multiOptions',
default: '',
default: [],
options: [
{
name: 'Paused',
@ -291,7 +291,7 @@ export const monitorFields: INodeProperties[] = [
displayName: 'Types',
name: 'types',
type: 'multiOptions',
default: '',
default: [],
options: [
{
name: 'Heartbeat',

View file

@ -186,7 +186,7 @@ export const cardFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
default: [],
description: 'The new list of assignee IDs attached to the card.',
},
{
@ -203,7 +203,7 @@ export const cardFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
default: [],
description: 'The new list of member IDs attached to the card.',
},
],
@ -604,7 +604,7 @@ export const cardFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
default: [],
description: 'The new list of assignee IDs attached to the card.',
},
{
@ -764,7 +764,7 @@ export const cardFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
default: [],
description: 'The new list of member IDs attached to the card.',
},
{

View file

@ -62,7 +62,7 @@ export const messageFields: INodeProperties[] = [
loadOptionsMethod: 'getUsers',
},
required: true,
default: '',
default: [],
displayOptions: {
show: {
resource: [