👕 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'], files: ['./packages/nodes-base/nodes/**/*.ts'],
plugins: ['eslint-plugin-n8n-nodes-base'], plugins: ['eslint-plugin-n8n-nodes-base'],
rules: { 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', displayName: 'Trigger',
name: 'watchField', name: 'watchField',
type: 'options', type: 'options',
default: '',
options: [ options: [
{ {
name: 'New Time Entry', name: 'New Time Entry',

View file

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

View file

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

View file

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

View file

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

View file

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