👕 Apply node-param-default-wrong-for-boolean (#3181)

* Autofixed default missing

* Autofixed booleans, worked well

*  Fix params

*  Undo exempted autofixes

* 📦 Update package-lock.json
This commit is contained in:
agobrech 2022-04-22 12:41:35 +02:00 committed by GitHub
parent ca49288bcd
commit f2df0bf7c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 16 additions and 15 deletions

View file

@ -379,7 +379,8 @@ module.exports = {
"n8n-nodes-base/node-class-description-inputs-wrong-regular-node": "error", "n8n-nodes-base/node-class-description-inputs-wrong-regular-node": "error",
"n8n-nodes-base/node-class-description-outputs-wrong": "error", "n8n-nodes-base/node-class-description-outputs-wrong": "error",
"n8n-nodes-base/node-execute-block-double-assertion-for-items": "error", "n8n-nodes-base/node-execute-block-double-assertion-for-items": "error",
"n8n-nodes-base/node-param-default-wrong-for-collection": "error" "n8n-nodes-base/node-param-default-wrong-for-collection": "error",
"n8n-nodes-base/node-param-default-wrong-for-boolean": "error"
} }
}, },
], ],

View file

@ -143,7 +143,7 @@ export const eventFields: INodeProperties[] = [
{ {
displayName: 'All Day', displayName: 'All Day',
name: 'allday', name: 'allday',
type: 'boolean', type: 'options',
options: [ options: [
{ {
name: 'Yes', name: 'Yes',
@ -780,7 +780,7 @@ export const eventFields: INodeProperties[] = [
{ {
displayName: 'All Day', displayName: 'All Day',
name: 'allday', name: 'allday',
type: 'boolean', type: 'options',
options: [ options: [
{ {
name: 'Yes', name: 'Yes',

View file

@ -1275,7 +1275,7 @@ export class GoogleDrive implements INodeType {
], ],
}, },
}, },
default: '', default: false,
description: `<p>This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item.</p><p>When set to true, the item is moved to the new owner's My Drive root folder and all prior parents removed.</p>`, description: `<p>This parameter only takes effect if the item is not in a shared drive and the request is attempting to transfer the ownership of the item.</p><p>When set to true, the item is moved to the new owner's My Drive root folder and all prior parents removed.</p>`,
}, },
{ {

View file

@ -277,7 +277,7 @@ export const taskFields: INodeProperties[] = [
displayName: 'Billable By Default', displayName: 'Billable By Default',
name: 'billable_by_default', name: 'billable_by_default',
type: 'boolean', type: 'boolean',
default: '', default: false,
description: 'Used in determining whether default tasks should be marked billable when creating a new project. Defaults to true.', description: 'Used in determining whether default tasks should be marked billable when creating a new project. Defaults to true.',
}, },
{ {

View file

@ -446,7 +446,7 @@ export const userFields: INodeProperties[] = [
displayName: 'Unsubscribed From Emails', displayName: 'Unsubscribed From Emails',
name: 'unsubscribedFromEmails', name: 'unsubscribedFromEmails',
type: 'boolean', type: 'boolean',
default: '', default: false,
placeholder: '', placeholder: '',
description: 'Whether the user is unsubscribed from emails', description: 'Whether the user is unsubscribed from emails',
}, },

View file

@ -136,7 +136,7 @@ export const groupFields: INodeProperties[] = [
displayName: 'Active', displayName: 'Active',
name: 'active', name: 'active',
type: 'boolean', type: 'boolean',
default: '', default: false,
description: 'Whether a user is active', description: 'Whether a user is active',
}, },
{ {

View file

@ -118,7 +118,7 @@ export const identifyFields: INodeProperties[] = [
displayName: 'Active', displayName: 'Active',
name: 'active', name: 'active',
type: 'boolean', type: 'boolean',
default: '', default: false,
description: 'Whether a user is active', description: 'Whether a user is active',
}, },
{ {

View file

@ -99,7 +99,7 @@ export const trackFields: INodeProperties[] = [
displayName: 'Active', displayName: 'Active',
name: 'active', name: 'active',
type: 'boolean', type: 'boolean',
default: '', default: false,
description: 'Whether a user is active', description: 'Whether a user is active',
}, },
{ {
@ -418,7 +418,7 @@ export const trackFields: INodeProperties[] = [
displayName: 'Active', displayName: 'Active',
name: 'active', name: 'active',
type: 'boolean', type: 'boolean',
default: '', default: false,
description: 'Whether a user is active', description: 'Whether a user is active',
}, },
{ {

View file

@ -394,7 +394,7 @@ export const orderFields: INodeProperties[] = [
displayName: 'Test', displayName: 'Test',
name: 'test', name: 'test',
type: 'boolean', type: 'boolean',
default: '', default: false,
description: 'Whether this is a test order.', description: 'Whether this is a test order.',
}, },
], ],

View file

@ -167,7 +167,7 @@ export class Signl4 implements INodeType {
displayName: 'Filtering', displayName: 'Filtering',
name: 'filtering', name: 'filtering',
type: 'boolean', type: 'boolean',
default: 'false', default: false,
description: `Specify a boolean value of true or false to apply event filtering for this event, or not. If set to true, the event will only trigger a notification to the team, if it contains at least one keyword from one of your services and system categories (i.e. it is whitelisted)`, description: `Specify a boolean value of true or false to apply event filtering for this event, or not. If set to true, the event will only trigger a notification to the team, if it contains at least one keyword from one of your services and system categories (i.e. it is whitelisted)`,
}, },
{ {

View file

@ -124,7 +124,7 @@ export const stockOnHandFields: INodeProperties[] = [
displayName: 'Is Assembled', displayName: 'Is Assembled',
name: 'IsAssembled', name: 'IsAssembled',
type: 'boolean', type: 'boolean',
default: '', default: false,
description: 'If set to True, the AvailableQty will also include the quantity that can be assembled.', description: 'If set to True, the AvailableQty will also include the quantity that can be assembled.',
}, },
{ {

View file

@ -347,7 +347,7 @@ export const meetingFields: INodeProperties[] = [
displayName: 'Show Previous Occurrences', displayName: 'Show Previous Occurrences',
name: 'showPreviousOccurrences', name: 'showPreviousOccurrences',
type: 'boolean', type: 'boolean',
default: '', default: false,
description: 'To view meeting details of all previous occurrences of the recurring meeting.', description: 'To view meeting details of all previous occurrences of the recurring meeting.',
}, },
], ],

View file

@ -318,7 +318,7 @@ export const webinarFields: INodeProperties[] = [
displayName: 'Show Previous Occurrences', displayName: 'Show Previous Occurrences',
name: 'showPreviousOccurrences', name: 'showPreviousOccurrences',
type: 'boolean', type: 'boolean',
default: '', default: false,
description: 'To view webinar details of all previous occurrences of the recurring webinar.', description: 'To view webinar details of all previous occurrences of the recurring webinar.',
}, },
], ],