Skip to content

Commit

Permalink
👕 Apply rule node-param-placeholder-miscased-id (#3443)
Browse files Browse the repository at this point in the history
Co-authored-by: Iván Ovejero <[email protected]>
  • Loading branch information
krynble and ivov authored Jun 3, 2022
1 parent c03ab51 commit d706e93
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ module.exports = {
'n8n-nodes-base/node-param-resource-with-plural-option': 'error',
'n8n-nodes-base/node-param-resource-without-no-data-expression': 'error',
'n8n-nodes-base/node-param-type-options-missing-from-limit': 'error',
'n8n-nodes-base/node-param-placeholder-miscased-id': 'error',
'n8n-nodes-base/node-param-description-miscased-url': 'error',
},
},
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ export const itemFields: INodeProperties[] = [
displayName: 'Attributes to Select',
name: 'projectionExpression',
type: 'string',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id, name',
default: '',
},
Expand Down Expand Up @@ -709,6 +710,7 @@ export const itemFields: INodeProperties[] = [
displayName: 'Key Condition Expression',
name: 'keyConditionExpression',
description: 'Condition to determine the items to be retrieved. The condition must perform an equality test on a single partition key value, in this format: <code>partitionKeyName = :partitionkeyval</code>',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id = :id',
default: '',
type: 'string',
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/CrateDb/CrateDb.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class CrateDb implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'SELECT id, name FROM product WHERE quantity > $1 AND price <= $2',
required: true,
description: 'The SQL query to execute. You can use n8n expressions or $1 and $2 in conjunction with query parameters.',
Expand Down Expand Up @@ -123,6 +124,7 @@ export class CrateDb implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const recordFields: INodeProperties[] = [
},
default: '',
required: true,
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the item properties to use as columns',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export const secureScoreControlProfileFields: INodeProperties[] = [
description: '<a href="https://docs.microsoft.com/en-us/graph/query-parameters#filter-parameter">Query parameter</a> to filter results by',
type: 'string',
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'startsWith(id, \'AATP\')',
},
],
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/Microsoft/Sql/MicrosoftSql.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class MicrosoftSql implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'SELECT id, name FROM product WHERE id < 40',
required: true,
description: 'The SQL query to execute',
Expand Down Expand Up @@ -129,6 +130,7 @@ export class MicrosoftSql implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/MySql/MySql.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class MySql implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'SELECT id, name FROM product WHERE id < 40',
required: true,
description: 'The SQL query to execute',
Expand Down Expand Up @@ -110,6 +111,7 @@ export class MySql implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/Postgres/Postgres.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export class Postgres implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'SELECT id, name FROM product WHERE quantity > $1 AND price <= $2',
required: true,
description: 'The SQL query to execute. You can use n8n expressions or $1 and $2 in conjunction with query parameters.',
Expand Down Expand Up @@ -116,6 +117,7 @@ export class Postgres implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id:int,name:text,description',
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-id
description: 'Comma-separated list of the properties which should used as columns for the new rows. You can use type casting with colons (:) like id:int.',
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/QuestDb/QuestDb.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export class QuestDb implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'SELECT id, name FROM product WHERE quantity > $1 AND price <= $2',
required: true,
description: 'The SQL query to execute. You can use n8n expressions or $1 and $2 in conjunction with query parameters.',
Expand Down Expand Up @@ -119,6 +120,7 @@ export class QuestDb implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/QuickBase/RecordDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ export const recordFields: INodeProperties[] = [
},
default: '',
required: true,
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down Expand Up @@ -487,6 +488,7 @@ export const recordFields: INodeProperties[] = [
},
default: '',
required: true,
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Rundeck/Rundeck.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class Rundeck implements INodeType {
},
},
default: '',
placeholder: 'Rundeck Job Id',
placeholder: 'Rundeck Job ID',
required: true,
description: 'The job ID to execute',
},
Expand Down Expand Up @@ -144,7 +144,7 @@ export class Rundeck implements INodeType {
},
},
default: '',
placeholder: 'Rundeck Job Id',
placeholder: 'Rundeck Job ID',
required: true,
description: 'The job ID to get metadata off',
},
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/Snowflake/Snowflake.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class Snowflake implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'SELECT id, name FROM product WHERE id < 40',
required: true,
description: 'The SQL query to execute',
Expand Down Expand Up @@ -117,6 +118,7 @@ export class Snowflake implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down
1 change: 1 addition & 0 deletions packages/nodes-base/nodes/Stackby/Stackby.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export class Stackby implements INodeType {
},
default: '',
required: true,
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/Strapi/EntryDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const entryFields: INodeProperties[] = [
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down Expand Up @@ -343,6 +344,7 @@ export const entryFields: INodeProperties[] = [
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down
2 changes: 2 additions & 0 deletions packages/nodes-base/nodes/TimescaleDb/TimescaleDb.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class TimescaleDb implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'SELECT id, name FROM product WHERE quantity > $1 AND price <= $2',
required: true,
description: 'The SQL query to execute. You can use n8n expressions or $1 and $2 in conjunction with query parameters.',
Expand Down Expand Up @@ -129,6 +130,7 @@ export class TimescaleDb implements INodeType {
},
},
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-placeholder-miscased-id
placeholder: 'id,name,description',
description: 'Comma-separated list of the properties which should used as columns for the new rows',
},
Expand Down

0 comments on commit d706e93

Please sign in to comment.