From 7c80ba878b02abcb27e238839041e0143de1e9d0 Mon Sep 17 00:00:00 2001 From: akulsr0 Date: Thu, 18 Jul 2024 10:13:09 +0530 Subject: [PATCH] chore: default sep to empty string --- lib/util/propTypesSort.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/propTypesSort.js b/lib/util/propTypesSort.js index da5a0912c7..bffcfb1073 100644 --- a/lib/util/propTypesSort.js +++ b/lib/util/propTypesSort.js @@ -185,7 +185,7 @@ function fixPropTypesSort( ); const sourceCodeText = getText(context); - let separator = null; + let separator = ''; source = nodes.reduceRight((acc, attr, index) => { const sortedAttr = sortedAttributes[index]; const commentNode = commentnodeMap.get(sortedAttr);