Skip to content

Redesign option for require-jsdoc #384

@chiawendt

Description

@chiawendt

The option for require-jsdoc is hard to use. It requires knowledge of ESTree. And it is not useful for this rule to make distinction between FunctionDeclaration, FunctionExpression, and ArrowFunctionExpression, conceptually there are just functions, whether it is arrow function does not affect whether it needs jsdoc comment.

A more user friendly option will be:

{
  requires: {
    functions: boolean,
    methods: boolean,
    classes: boolean,
  }
}

This would be a breaking change.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions