Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty-tags error with private tag #671

Closed
5saviahv opened this issue Jan 14, 2021 · 0 comments
Closed

empty-tags error with private tag #671

5saviahv opened this issue Jan 14, 2021 · 0 comments

Comments

@5saviahv
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant