mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
apply eslint-disable max-len around block comments that need to have a long line
The `@api ` lines can't have a line break in them because it would cause the first part of the text to not be displayed on the apidocs website. Using `// eslint-disable-line max-len` at the end of an `@api ` line doesn't work, possibly because it's nesting a comment inside a multi-line comment. The only way I've found to ignore the `max-len` rule is to put disable and enable comments around the whole comment block.
This commit is contained in:
@@ -111,6 +111,7 @@ api.getGroupTasks = {
|
||||
},
|
||||
};
|
||||
|
||||
/* eslint-disable max-len */
|
||||
/**
|
||||
* @api {post} /api/v3/group/:groupId/tasks/:taskId/move/to/:position Move group task to new position
|
||||
* @apiDescription Moves a group task to a specified position
|
||||
@@ -124,6 +125,7 @@ api.getGroupTasks = {
|
||||
*
|
||||
* @apiSuccess {Array} data The new tasks order (group.tasksOrder.{task.type}s)
|
||||
*/
|
||||
/* eslint-enable max-len */
|
||||
api.groupMoveTask = {
|
||||
method: 'POST',
|
||||
url: '/group-tasks/:taskId/move/to/:position',
|
||||
|
||||
Reference in New Issue
Block a user