👕 Autofix node-param-default-missing (#3173)

This commit is contained in:
agobrech 2022-04-22 10:53:01 +02:00 committed by GitHub
parent 9c0e5e01db
commit 46a176fa3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 943 additions and 58856 deletions

View file

@ -374,8 +374,8 @@ module.exports = {
files: ['./packages/nodes-base/nodes/**/*.ts'],
plugins: ['eslint-plugin-n8n-nodes-base'],
rules: {
},
"n8n-nodes-base/node-param-default-missing": "error"
}
},
],
};

59785
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -54,6 +54,7 @@ export class ClockifyTrigger implements INodeType {
displayName: 'Trigger',
name: 'watchField',
type: 'options',
default: '',
options: [
{
name: 'New Time Entry',

View file

@ -140,6 +140,7 @@ export class LocalFileTrigger implements INodeType {
displayName: 'Max Folder Depth',
name: 'depth',
type: 'options',
default: '-1',
options: [
{
name: 'Unlimited',

View file

@ -112,6 +112,7 @@ export class Pushover implements INodeType {
displayName: 'Priority',
name: 'priority',
type: 'options',
default: '-2',
displayOptions: {
show: {
resource: [

View file

@ -522,6 +522,7 @@ export class Switch implements INodeType {
displayName: 'Fallback Output',
name: 'fallbackOutput',
type: 'options',
default: '-1',
displayOptions: {
show: {
mode: [

View file

@ -187,6 +187,7 @@ export const channelFields: INodeProperties[] = [
default: false,
description: 'If enabled, the channel will be marked as public.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-default-missing
{
displayName: 'Temp ID',
name: 'temp_id',

View file

@ -20,8 +20,8 @@
"build:translations": "gulp build:translations",
"format": "cd ../.. && node_modules/prettier/bin-prettier.js packages/nodes-base/**/**.ts --write",
"lint": "tslint -p tsconfig.json -c tslint.json",
"lintfix": "tslint --fix -p tsconfig.json -c tslint.json",
"lintfix:old": "cd ../.. && node_modules/eslint/bin/eslint.js packages/nodes-base/nodes --fix",
"lintfix": "cd ../.. && node_modules/eslint/bin/eslint.js packages/nodes-base/nodes --fix",
"lintfix:old": "tslint --fix -p tsconfig.json -c tslint.json",
"nodelinter": "nodelinter",
"watch": "tsc --watch",
"test": "jest"
@ -715,6 +715,7 @@
"@types/tmp": "^0.2.0",
"@types/uuid": "^8.3.2",
"@types/xml2js": "^0.4.3",
"eslint-plugin-n8n-nodes-base": "^1.0.28",
"gulp": "^4.0.0",
"jest": "^27.4.7",
"n8n-workflow": "~0.96.0",