File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const looksLikeExport = function (astNode) {
25
25
astNode . type === 'ExportAllDeclaration' || astNode . type === 'ExportSpecifier' ;
26
26
} ;
27
27
28
+ /* eslint-disable complexity */
28
29
/**
29
30
* Retrieves the JSDoc comment for a given node.
30
31
*
@@ -67,10 +68,8 @@ const getJSDocComment = function (sourceCode, node) {
67
68
return findJSDocComment ( looksLikeExport ( parent ) ? parent : node ) ;
68
69
69
70
case 'ClassExpression' :
70
- return findJSDocComment ( parent . parent ) ;
71
-
72
- case 'ArrowFunctionExpression' :
73
71
case 'ObjectExpression' :
72
+ case 'ArrowFunctionExpression' :
74
73
case 'FunctionExpression' :
75
74
if (
76
75
parent . type !== 'CallExpression' &&
@@ -102,5 +101,6 @@ const getJSDocComment = function (sourceCode, node) {
102
101
return null ;
103
102
}
104
103
} ;
104
+ /* eslint-enable complexity */
105
105
106
106
export default getJSDocComment ;
You can’t perform that action at this time.
0 commit comments