Skip to content

Docs: Confused by options for require-hyphen-before-param-description #690

@thernstig

Description

@thernstig

Caveat: I deleted the entire template due to this being a doc issue.

https://github.com/gajus/eslint-plugin-jsdoc/#options says:

eslint-plugin-jsdoc options, if present, are in the form of an object supplied as the second argument in an array after the error level.

require-hyphen-before-param-description (https://github.com/gajus/eslint-plugin-jsdoc/blob/master/.README/rules/require-hyphen-before-param-description.md) says:

Options
This rule takes one optional string argument and an optional options object.

https://github.com/gajus/eslint-plugin-jsdoc/#require-hyphen-before-param-description also has examples that say:

Options: ["always",{"tags":{"*":"never"}}]

This seems to contradict eachother. The first links says it should be an object. The other two indicates it is an array.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions