-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Description
Expected behavior
TSDeclareFunctions should report no error even if they have a prepended export.
Actual behavior
An error is reported sayin that the jsdoc-comment is missing.
ESLint Config
{
rules: {
"jsdoc/require-jsdoc": [
"warn",
{
require: {
FunctionDeclaration: true
},
contexts: [
"TSDeclareFunction"
]
}
]
}
}ESLint sample
/**
* This is a text.
*/
function x(); // works great
/**
* This is a text.
*/
function x(text: string) { }
/**
* This is a text.
*/
export function a(); // Reports an error
/**
* This is a text.
*/
export function a(text: string)
{ }Environment
- Node version: v12.18.3
- ESLint version v7.10.0
eslint-plugin-jsdocversion: 30.6.2