Skip to content

Commit a7287a2

Browse files
committed
Fix: jsdoc
1 parent 6db6ff7 commit a7287a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/util/propTypesSort.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ function sorter(a, b, context, ignoreCase, requiredFirst, callbacksLast, noSortA
109109
return 0;
110110
}
111111

112+
const commentnodeMap = new WeakMap(); // all nodes reference WeakMap for start and end range
113+
112114
/**
113115
* Fixes sort order of prop types.
114116
*
@@ -118,10 +120,10 @@ function sorter(a, b, context, ignoreCase, requiredFirst, callbacksLast, noSortA
118120
* @param {Boolean=} ignoreCase whether or not to ignore case when comparing the two elements.
119121
* @param {Boolean=} requiredFirst whether or not to sort required elements first.
120122
* @param {Boolean=} callbacksLast whether or not to sort callbacks after everything else.
123+
* @param {Boolean=} noSortAlphabetically whether or not to disable alphabetical sorting of the elements.
121124
* @param {Boolean=} sortShapeProp whether or not to sort propTypes defined in PropTypes.shape.
122125
* @returns {Object|*|{range, text}} the sort order of the two elements.
123126
*/
124-
const commentnodeMap = new WeakMap(); // all nodes reference WeakMap for start and end range
125127
function fixPropTypesSort(
126128
fixer,
127129
context,

0 commit comments

Comments
 (0)