mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
👕 Autofix node-param-default-missing (#3173)
This commit is contained in:
parent
9c0e5e01db
commit
46a176fa3b
|
@ -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
59785
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -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',
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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: [
|
||||||
|
|
|
@ -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: [
|
||||||
|
|
|
@ -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',
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue