👕 Apply node-class-description-outputs-wrong (#3178)

This commit is contained in:
Iván Ovejero 2022-04-22 11:59:43 +02:00 committed by GitHub
parent afa475688e
commit 68a2bb18de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 1 deletions

View file

@ -376,7 +376,8 @@ module.exports = {
rules: {
"n8n-nodes-base/node-param-default-missing": "error",
"n8n-nodes-base/node-class-description-inputs-wrong-trigger-node": "error",
"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"
}
},
],

View file

@ -23,6 +23,7 @@ export class If implements INodeType {
color: '#408000',
},
inputs: ['main'],
// eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong
outputs: ['main', 'main'],
outputNames: ['true', 'false'],
properties: [

View file

@ -27,6 +27,7 @@ export class StopAndError implements INodeType {
color: '#ff0000',
},
inputs: ['main'],
// eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong
outputs: [],
properties: [
{

View file

@ -22,6 +22,7 @@ export class Switch implements INodeType {
color: '#506000',
},
inputs: ['main'],
// eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong
outputs: ['main', 'main', 'main', 'main'],
outputNames: ['0', '1', '2', '3'],
properties: [