Skip to content

tagNamePreference tag value not handled properly #435

@markdoten

Description

@markdoten

I'm trying to disable the use of the @description tag for jsdoc descriptions. E.g.

/**
 * Some description
 */

Instead of:

/**
 * @description Some description
 */

My settings are:

settings: {
    jsdoc: {
      tagNamePreference: {
        description: false
      }
    }
},
rules: {
  'jsdoc/require-description': 2
}

When I run the linter, it gives me this error:

error  Missing JSDoc @false declaration  jsdoc/require-description

Based on the documentation, I would expect providing false to reject a normally valid tag.

Am I just not understanding how it's supposed to work? Am I missing a necessary rule?

Versions:

  • eslint: ^6.6.0
  • eslint-plugin-jsdoc: ^18.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions