You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There currently does not appear to be a way to enforce at most a single blank line within a multiline block. The tag-lines rule allows you to enforce a minimum count between lines, but there is no maximum equivalent.
Current behavior
There does not appear to be a way to limit the amount of empty lines within a block comment.
Desired behavior
The ability to limit the amount of empty lines within a block comment. A new rule could be created, or a maximum option added to tag-lines to specify the maximum amount of empty lines allowed between lines in a block comment.
If going with the addition to tag-lines, consider the following failing example:
* Some description.
*
*
* @param {string} a
* @param {number} b
*/
// "jsdoc/tag-lines": ["error"|"warn", "always", {"maxCount": 1}]
// Message: Expected at most 1 line between tags but found 2
Alternatives considered
I have looked to see if there are other ESLint rules, and have also tried configuring the tag-lines rule as such:
Motivation
There currently does not appear to be a way to enforce at most a single blank line within a multiline block. The
tag-lines
rule allows you to enforce a minimumcount
between lines, but there is nomaximum
equivalent.Current behavior
There does not appear to be a way to limit the amount of empty lines within a block comment.
Desired behavior
The ability to limit the amount of empty lines within a block comment. A new rule could be created, or a
maximum
option added totag-lines
to specify the maximum amount of empty lines allowed between lines in a block comment.If going with the addition to
tag-lines
, consider the following failing example:Alternatives considered
I have looked to see if there are other ESLint rules, and have also tried configuring the
tag-lines
rule as such:The text was updated successfully, but these errors were encountered: