Skip to content

jsdoc/check-line-alignment option to take into account existing alignment #732

@TheJaredWilcurt

Description

@TheJaredWilcurt

With my current settings, the linter wants to change my alignment from this

  /**
   * Description
   *
   * @param  {object} options  The user's options
   * @param  {string} message  The text to be logged
   * @param  {object} error    Optional object with additional details
   */

to this

  /**
   * Description
   *
   * @param {object} options The user's options
   * @param {string} message The text to be logged
   * @param {object} error   Optional object with additional details
   */

It should be able to detect that each section is starting at the same point on each line.

    'jsdoc/check-line-alignment': [
      1,
      'always',
      {
        'tags': [
          'param',
          'arg',
          'argument',
          'property',
          'prop',
          'returns',
          'return'
        ]
      }
    ],

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions