File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const parseComment = (commentNode, indent) => {
22
22
} ) [ 0 ] || { } ;
23
23
} ;
24
24
25
- const curryUtils = (
25
+ const getUtils = (
26
26
node ,
27
27
jsdoc ,
28
28
{
@@ -37,10 +37,11 @@ const curryUtils = (
37
37
allowAugmentsExtendsWithoutParam,
38
38
checkSeesForNamepaths
39
39
} ,
40
- ancestors ,
41
- sourceCode ,
42
40
context
43
41
) => {
42
+ const ancestors = context . getAncestors ( ) ;
43
+ const sourceCode = context . getSourceCode ( ) ;
44
+
44
45
const utils = { } ;
45
46
46
47
utils . getFunctionParameterNames = ( ) => {
@@ -273,7 +274,7 @@ export {
273
274
} ;
274
275
275
276
/**
276
- * @typedef {ReturnType<typeof curryUtils > } Utils
277
+ * @typedef {ReturnType<typeof getUtils > } Utils
277
278
* @typedef {ReturnType<typeof getSettings> } Settings
278
279
*
279
280
* @param {(arg: {utils: Utils, settings: Settings}) => any } iterator
@@ -320,8 +321,6 @@ export default function iterateJsdoc (iterator, ruleConfig) {
320
321
return ;
321
322
}
322
323
323
- const ancestors = context . getAncestors ( ) ;
324
-
325
324
const indent = _ . repeat ( ' ' , jsdocNode . loc . start . column ) ;
326
325
327
326
const jsdoc = parseComment ( jsdocNode , indent ) ;
@@ -353,12 +352,10 @@ export default function iterateJsdoc (iterator, ruleConfig) {
353
352
} ) ;
354
353
} ;
355
354
356
- const utils = curryUtils (
355
+ const utils = getUtils (
357
356
node ,
358
357
jsdoc ,
359
358
settings ,
360
- ancestors ,
361
- sourceCode ,
362
359
context
363
360
) ;
364
361
You can’t perform that action at this time.
0 commit comments