Skip to content

[require-description] checkConstructors not working when contexts sets to [MethodDefinition] #534

@OpportunityLiu

Description

@OpportunityLiu

For example:

/**
 *
 */
class Foo {
    /**
     *
     */
    constructor() {}

    /**
     *
     */
    bar() {}
}

I need to add [ClassDeclaration] to context for the doc of class, but with contexts: [ClassDeclaration], both constructor & bar have no Missing JSDoc block description. warning. When I add [MethodDefinition] to contexts, or set contexts: [any], both constructor & bar have Missing JSDoc block description. warning, even if checkConstructors: false is set.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions