Skip to content

empty-tags error with private tag #671

@5saviahv

Description

@5saviahv

Expected behavior

Not sure is it bug but "empty-tags" error is shown.

Actual behavior

Strangely error disappears if I delete empty line after @private tag.

ESLint Config

{
    "jsdoc/require-jsdoc": 0,
    "jsdoc/check-param-names": 2,
    "jsdoc/check-tag-names": 2,
    "jsdoc/check-types": 2,
    "jsdoc/newline-after-description": 2,
    "jsdoc/require-description-complete-sentence": 2,
    "jsdoc/require-hyphen-before-param-description": 2,
    "jsdoc/require-param-description": 2,
    "jsdoc/require-param-name": 2,
    "jsdoc/require-param-type": 2,
    "jsdoc/require-param": 2,
    "jsdoc/valid-types": 2,

  }
}

ESLint sample

/**
 * Create an array.
 *
 * @private
 * 
 * @param {string[]} [elem] - Elements to make an array of.
 * @param {boolean} [clone] - Optionally clone nodes.
 * @returns {string[]} The array of nodes.
 */


// Format JS code here

Environment

  • Node version: v12.19.0
  • ESLint version 7.17.0
  • eslint-plugin-jsdoc version: 31.0.3

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions