Skip to content

New rule: newline-between-tags #552

@0xCLARITY

Description

@0xCLARITY

Motivation

In all of our repos, there is an inconsistency between different functions and how they handle whitespace, especially between @param and @returns. For example:

/**
 * ...
 *
 * @param var - ...
 * @returns ...
 */

vs

/**
 * ...
 *
 * @param var - ...
 *
 * @returns ...
 */

Ideally I would like to be able to enforce consistency here.

Current behavior

No opinion about lines between JSDoc members.

Desired behavior

Enforce an opinion about lines between JSDoc members.

Alternatives considered

Not aware of any alternatives except a new rule.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions