-
-
Notifications
You must be signed in to change notification settings - Fork 167
Open
Labels
Description
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.