Ran into an error when attempting to alphabetize jsx props that contained a comment node, i.e.
<IconButton
{...dragHandleProps}
// Don't apply className with hover style if another element is being dragged
className={isOtherElementDragging ? undefined : props.className}
appearance="default"
backgroundColor={theme.colors.gray200}
onClick={onClick}
size="small"
visibility={visibility}
/>
will be transformed to:
<IconButton
{...dragHandleProps}
appearance="default"
backgroundColor={theme.colors.gray200}
// Don't apply className with hover style if another element is being dragged
className={isOtherElementDragging ? undefined : props.className}
onClick={onClick}
size="small"
visibility={visibility}
/>
Be sure to write a test that accounts for multi-line comments, too.
Ran into an error when attempting to alphabetize jsx props that contained a comment node, i.e.
will be transformed to:
Be sure to write a test that accounts for multi-line comments, too.