Skip to content

jsdoc-informative-docs generates a report whenever you use @class #1039

@ThosRTanner

Description

@ThosRTanner

Expected behavior

/** Some Description
 *
 * @class 
 *
 * @param {number} value - Some useful text
 */
function MyAmazingThing(value)
{
    this.thing = value;
}

should not produce a "This description only repeats the name it provides" warning on the @class line. The jsdoc documentation on @class doesn't require anything else on the line, and to be honest, the only description that is applicable to some classes is the short one.

Actual behavior

The @class line generates the above warning.

ESLint Config

---
plugins:
- jsdoc

rules:

  "jsdoc/informative-docs": warn

ESLint sample

See above

Environment

  • Node version: v18.16.0

  • ESLint version v8.38.0

  • eslint-plugin-jsdoc version: 43.0.7

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions