refactor: Apply more eslint-plugin-n8n-nodes-base autofixable rules (#3432)
* ⚡ Update `lintfix` script * 👕 Remove unneeded lint exceptions * 👕 Run baseline `lintfix` * 👕 Apply `node-param-description-miscased-url` (#3441) * 👕 Apply `rule node-param-placeholder-miscased-id` (#3443) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply `node-param-option-name-wrong-for-upsert` (#3446) * 👕 Apply `node-param-min-value-wrong-for-limit` (#3442) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-wrong-for-dynamic-options` (#3454) * 🔨 fix * ⚡ Fix `Assigned To` fields Co-authored-by: Michael Kret <michael.k@radency.com> * 👕 Apply `rule node-param-default-wrong-for-number` (#3453) * 👕 Apply `node-param-default-wrong-for-string` (#3452) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * Apply `node-param-display-name-miscased` (#3449) * 🔨 fix * 🔨 exceptions * ⚡ review fixes * 👕 Apply `node-param-description-lowercase-first-char` (#3451) * ⚡ fix * ⚡ review fixes * ⚡ fix Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply `node-param-description-wrong-for-dynamic-options` (#3456) * Rule working as intended * Add rule * 🔥 Remove repetitions * 👕 Add exceptions Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Small fix for `node-param-description-wrong-for-dynamic-options` * 👕 Apply `node-param-default-wrong-for-fixed-collection` (#3460) * 👕 Apply `node-param-description-line-break-html-tag` (#3462) * 👕 Run baseline `lintfix` * 👕 Apply `node-param-options-type-unsorted-items` (#3459) * ⚡ fix * 🔨 exceptions * Add exception for Salesmate and Zoom Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * ⚡ Restore `lintfix` command Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com> Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Michael Kret <michael.k@radency.com> Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
This commit is contained in:
@@ -111,14 +111,14 @@ export class Asana implements INodeType {
|
||||
name: 'Task Comment',
|
||||
value: 'taskComment',
|
||||
},
|
||||
{
|
||||
name: 'Task Tag',
|
||||
value: 'taskTag',
|
||||
},
|
||||
{
|
||||
name: 'Task Project',
|
||||
value: 'taskProject',
|
||||
},
|
||||
{
|
||||
name: 'Task Tag',
|
||||
value: 'taskTag',
|
||||
},
|
||||
{
|
||||
name: 'User',
|
||||
value: 'user',
|
||||
@@ -213,14 +213,14 @@ export class Asana implements INodeType {
|
||||
placeholder: 'Add Field',
|
||||
options: [
|
||||
{
|
||||
displayName: 'Assignee',
|
||||
displayName: 'Assignee Name or ID',
|
||||
name: 'assignee',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
description: 'Set Assignee on the subtask',
|
||||
description: 'Set Assignee on the subtask. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Assignee Status',
|
||||
@@ -280,14 +280,14 @@ export class Asana implements INodeType {
|
||||
description: 'The task notes',
|
||||
},
|
||||
{
|
||||
displayName: 'Workspace',
|
||||
displayName: 'Workspace Name or ID',
|
||||
name: 'workspace',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getWorkspaces',
|
||||
},
|
||||
default: '',
|
||||
description: 'The workspace to create the subtask in',
|
||||
description: 'The workspace to create the subtask in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -452,7 +452,7 @@ export class Asana implements INodeType {
|
||||
// task:create
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Workspace',
|
||||
displayName: 'Workspace Name or ID',
|
||||
name: 'workspace',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -471,7 +471,7 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The workspace to create the task in',
|
||||
description: 'The workspace to create the task in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Name',
|
||||
@@ -598,14 +598,14 @@ export class Asana implements INodeType {
|
||||
placeholder: 'Add Filter',
|
||||
options: [
|
||||
{
|
||||
displayName: 'Assignee',
|
||||
displayName: 'Assignee Name or ID',
|
||||
name: 'assignee',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
description: 'The assignee to filter tasks on. Note: If you specify assignee, you must also specify the workspace to filter on.',
|
||||
description: 'The assignee to filter tasks on. Note: If you specify assignee, you must also specify the workspace to filter on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
@@ -629,34 +629,34 @@ export class Asana implements INodeType {
|
||||
description: 'Provides “pretty” output',
|
||||
},
|
||||
{
|
||||
displayName: 'Project',
|
||||
displayName: 'Project Name or ID',
|
||||
name: 'project',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getProjects',
|
||||
},
|
||||
default: '',
|
||||
description: 'The project to filter tasks on',
|
||||
description: 'The project to filter tasks on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Section',
|
||||
displayName: 'Section Name or ID',
|
||||
name: 'section',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getSections',
|
||||
},
|
||||
default: '',
|
||||
description: 'The section to filter tasks on',
|
||||
description: 'The section to filter tasks on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Workspace',
|
||||
displayName: 'Workspace Name or ID',
|
||||
name: 'workspace',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getWorkspaces',
|
||||
},
|
||||
default: '',
|
||||
description: 'The workspace to filter tasks on. Note: If you specify workspace, you must also specify the assignee to filter on.',
|
||||
description: 'The workspace to filter tasks on. Note: If you specify workspace, you must also specify the assignee to filter on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Completed Since',
|
||||
@@ -698,7 +698,7 @@ export class Asana implements INodeType {
|
||||
description: 'The ID of the task to be moved',
|
||||
},
|
||||
{
|
||||
displayName: 'Project',
|
||||
displayName: 'Project Name or ID',
|
||||
name: 'projectId',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -717,10 +717,10 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Project to show the sections of',
|
||||
description: 'Project to show the sections of. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Section',
|
||||
displayName: 'Section Name or ID',
|
||||
name: 'section',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -742,7 +742,7 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The Section to move the task to',
|
||||
description: 'The Section to move the task to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
@@ -771,7 +771,7 @@ export class Asana implements INodeType {
|
||||
// task:search
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Workspace',
|
||||
displayName: 'Workspace Name or ID',
|
||||
name: 'workspace',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -790,7 +790,7 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The workspace in which the task is searched',
|
||||
description: 'The workspace in which the task is searched. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Filters',
|
||||
@@ -853,14 +853,14 @@ export class Asana implements INodeType {
|
||||
placeholder: 'Add Field',
|
||||
options: [
|
||||
{
|
||||
displayName: 'Assignee',
|
||||
displayName: 'Assignee Name or ID',
|
||||
name: 'assignee',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getUsers',
|
||||
},
|
||||
default: '',
|
||||
description: 'Set Assignee on the task',
|
||||
description: 'Set Assignee on the task. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Assignee Status',
|
||||
@@ -1166,7 +1166,7 @@ export class Asana implements INodeType {
|
||||
description: 'The ID of the task to add the project to',
|
||||
},
|
||||
{
|
||||
displayName: 'Project ID',
|
||||
displayName: 'Project Name or ID',
|
||||
name: 'project',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1184,7 +1184,7 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The project where the task will be added',
|
||||
description: 'The project where the task will be added. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -1250,7 +1250,7 @@ export class Asana implements INodeType {
|
||||
description: 'The ID of the task to add the project to',
|
||||
},
|
||||
{
|
||||
displayName: 'Project ID',
|
||||
displayName: 'Project Name or ID',
|
||||
name: 'project',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1268,7 +1268,7 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The project where the task will be removed from',
|
||||
description: 'The project where the task will be removed from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
// ----------------------------------
|
||||
// taskTag
|
||||
@@ -1324,7 +1324,7 @@ export class Asana implements INodeType {
|
||||
description: 'The ID of the task to add the tag to',
|
||||
},
|
||||
{
|
||||
displayName: 'Tags',
|
||||
displayName: 'Tags Name or ID',
|
||||
name: 'tag',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1345,7 +1345,7 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The tag that should be added',
|
||||
description: 'The tag that should be added. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
@@ -1371,7 +1371,7 @@ export class Asana implements INodeType {
|
||||
description: 'The ID of the task to add the tag to',
|
||||
},
|
||||
{
|
||||
displayName: 'Tags',
|
||||
displayName: 'Tags Name or ID',
|
||||
name: 'tag',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1392,7 +1392,7 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The tag that should be added',
|
||||
description: 'The tag that should be added. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
@@ -1451,7 +1451,7 @@ export class Asana implements INodeType {
|
||||
// user:getAll
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Workspace',
|
||||
displayName: 'Workspace Name or ID',
|
||||
name: 'workspace',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1470,7 +1470,7 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The workspace in which to get users',
|
||||
description: 'The workspace in which to get users. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
@@ -1541,7 +1541,7 @@ export class Asana implements INodeType {
|
||||
description: 'The name of the project to create',
|
||||
},
|
||||
{
|
||||
displayName: 'Workspace',
|
||||
displayName: 'Workspace Name or ID',
|
||||
name: 'workspace',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1559,10 +1559,10 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The workspace to create the project in',
|
||||
description: 'The workspace to create the project in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Team',
|
||||
displayName: 'Team Name or ID',
|
||||
name: 'team',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1582,7 +1582,7 @@ export class Asana implements INodeType {
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The team this project will be assigned to',
|
||||
description: 'The team this project will be assigned to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
@@ -1671,7 +1671,7 @@ export class Asana implements INodeType {
|
||||
// project:getAll
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Workspace',
|
||||
displayName: 'Workspace Name or ID',
|
||||
name: 'workspace',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1690,7 +1690,7 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The workspace in which to get users',
|
||||
description: 'The workspace in which to get users. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Return All',
|
||||
@@ -1759,7 +1759,7 @@ export class Asana implements INodeType {
|
||||
description: 'Only return projects whose archived field takes on the value of this parameter',
|
||||
},
|
||||
{
|
||||
displayName: 'Teams',
|
||||
displayName: 'Teams Name or ID',
|
||||
name: 'team',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1769,7 +1769,7 @@ export class Asana implements INodeType {
|
||||
loadOptionsMethod: 'getTeams',
|
||||
},
|
||||
default: '',
|
||||
description: 'The new name of the task',
|
||||
description: 'The new name of the task. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -1777,7 +1777,7 @@ export class Asana implements INodeType {
|
||||
// project:update
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Workspace',
|
||||
displayName: 'Workspace Name or ID',
|
||||
name: 'workspace',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1796,7 +1796,7 @@ export class Asana implements INodeType {
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'The workspace in which to get users',
|
||||
description: 'The workspace in which to get users. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Project ID',
|
||||
@@ -1871,7 +1871,7 @@ export class Asana implements INodeType {
|
||||
description: 'The new assignee/cardinal for this project',
|
||||
},
|
||||
{
|
||||
displayName: 'Team',
|
||||
displayName: 'Team Name or ID',
|
||||
name: 'team',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -1881,7 +1881,7 @@ export class Asana implements INodeType {
|
||||
loadOptionsMethod: 'getTeams',
|
||||
},
|
||||
default: '',
|
||||
description: 'The team this project will be assigned to',
|
||||
description: 'The team this project will be assigned to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user