Skip to content

Options for lines-before-block to ignore the beginning of a class, function or other block #1296

@ehoogeveen-medweb

Description

@ehoogeveen-medweb

Motivation

For example:

class MyClass {
  /**
   * Description of member function.
   */
  outerFunc() {
    /**
     * Description of inner function.
     */
    innerFunc() { }

    return innerFunc;
  }
}

Compare the options in the ESLint Stylistic rule lines-around-comment and the typescript variant.

Current behavior

Warns about jsdoc comments immediately after the start of a class/function/block.

Desired behavior

Options not to warn about those positions.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions