Skip to content

Align to indent of succeeding function/context rather than to top of jsdoc block #413

@brettz9

Description

@brettz9

User @OmgImAlexis requested that check-alignment be changed to have alignment based on the function or context that follows a comment, rather than the top of the jsdoc block.

For example:

module.exports = function (si) {
	/**
      * Desc
      *
      * @param {number} foo
      */
     function quux(foo) {
     }
};

...should be fixed to:

module.exports = function (si) {
    /**
     * Desc
     *
     * @param {number} foo
     */
     function quux(foo) {
     }
};

not to:

module.exports = function (si) {
	/**
	 * Desc
	 *
	 * @param {number} foo
	 */
     function quux(foo) {
     }
};

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions