@@ -58,6 +58,7 @@ export default function SettingsTab({
5858 semicolons,
5959 arrowParentheses,
6060 bracketSpacing,
61+ delimiterSpacing,
6162 bracketSameLine,
6263 expand,
6364 indentScriptAndStyle,
@@ -121,6 +122,10 @@ export default function SettingsTab({
121122 setPlaygroundState ,
122123 "bracketSpacing" ,
123124 ) ;
125+ const setDelimiterSpacing = createPlaygroundSettingsSetter (
126+ setPlaygroundState ,
127+ "delimiterSpacing" ,
128+ ) ;
124129 const setBracketSameLine = createPlaygroundSettingsSetter (
125130 setPlaygroundState ,
126131 "bracketSameLine" ,
@@ -350,6 +355,8 @@ export default function SettingsTab({
350355 setAttributePosition = { setAttributePosition }
351356 bracketSpacing = { bracketSpacing }
352357 setBracketSpacing = { setBracketSpacing }
358+ delimiterSpacing = { delimiterSpacing }
359+ setDelimiterSpacing = { setDelimiterSpacing }
353360 bracketSameLine = { bracketSameLine }
354361 setBracketSameLine = { setBracketSameLine }
355362 expand = { expand }
@@ -772,6 +779,8 @@ function FormatterSettings({
772779 setAttributePosition,
773780 bracketSpacing,
774781 setBracketSpacing,
782+ delimiterSpacing,
783+ setDelimiterSpacing,
775784 bracketSameLine,
776785 setBracketSameLine,
777786 expand,
@@ -803,6 +812,8 @@ function FormatterSettings({
803812 setAttributePosition : ( value : AttributePosition ) => void ;
804813 bracketSpacing : boolean ;
805814 setBracketSpacing : ( value : boolean ) => void ;
815+ delimiterSpacing : boolean ;
816+ setDelimiterSpacing : ( value : boolean ) => void ;
806817 bracketSameLine : boolean ;
807818 setBracketSameLine : ( value : boolean ) => void ;
808819 expand : Expand ;
@@ -822,6 +833,7 @@ function FormatterSettings({
822833 const arrowParenthesesId = useId ( ) ;
823834 const attributePositionId = useId ( ) ;
824835 const bracketSpacingId = useId ( ) ;
836+ const delimiterSpacingId = useId ( ) ;
825837 const bracketSameLineId = useId ( ) ;
826838 const expandId = useId ( ) ;
827839 const indentScriptAndStyleId = useId ( ) ;
@@ -966,6 +978,16 @@ function FormatterSettings({
966978 onChange = { ( e ) => setBracketSpacing ( e . target . checked ) }
967979 />
968980 </ div >
981+ < div className = "field-row" >
982+ < label htmlFor = { delimiterSpacingId } > Delimiter Spacing</ label >
983+ < input
984+ id = { delimiterSpacingId }
985+ name = "delimiterSpacing"
986+ type = "checkbox"
987+ checked = { delimiterSpacing }
988+ onChange = { ( e ) => setDelimiterSpacing ( e . target . checked ) }
989+ />
990+ </ div >
969991 < div className = "field-row" >
970992 < label htmlFor = { bracketSameLineId } > Bracket Same Line</ label >
971993 < input
0 commit comments