You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The checkConstructors option does not exist on require-jsdoc.
You can get the behavior, however, as follows (and I've added this as a test case / docs, for future reference) (the contexts are esquery expressions, and you can consult the esquery docs and the likes of https://astexplorer.net/ to discover AST details for building expressions for your desired syntax):
For example:
I need to add [ClassDeclaration] to context for the doc of class, but with
contexts: [ClassDeclaration]
, both constructor & bar have noMissing JSDoc block description.
warning. When I add [MethodDefinition] tocontexts
, or setcontexts: [any]
, both constructor & bar haveMissing JSDoc block description.
warning, even ifcheckConstructors: false
is set.The text was updated successfully, but these errors were encountered: