Skip to content

Commit 8d647d1

Browse files
fix(jsdoc/require-jsdoc): ensure exported function declaration also require jsdoc
1 parent 46554a1 commit 8d647d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugins/jsdoc.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export const settings: Linter.Config = {
1919
"warn",
2020
{
2121
contexts: [
22-
":not(TSDeclareFunction) + FunctionDeclaration",
22+
":not(ExportNamedDeclaration) > FunctionDeclaration:not(TSDeclareFunction + FunctionDeclaration)",
23+
"ExportNamedDeclaration > FunctionDeclaration:not(ExportNamedDeclaration:has(TSDeclareFunction) + ExportNamedDeclaration > FunctionDeclaration)",
2324
"TSDeclareFunction",
2425
"ExportNamedDeclaration > TSTypeAliasDeclaration",
2526
"ExportNamedDeclaration > TSInterfaceDeclaration",

0 commit comments

Comments
 (0)