File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ export type ToStringOptions = {
303303 /**
304304 * When true, a single space of padding will be added inside the delimiters
305305 * of non-empty single-line flow collections.
306- *
306+ *
307307 * Default: `true`
308308 */
309309 flowCollectionPadding ?: boolean
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ function stringifyFlowCollection(
9494 const {
9595 indent,
9696 indentStep,
97- flowCollectionPadding,
97+ flowCollectionPadding : fcPadding ,
9898 options : { commentString }
9999 } = ctx
100100 itemIndent += indentStep
@@ -156,7 +156,7 @@ function stringifyFlowCollection(
156156 str += line ? `\n${ indentStep } ${ indent } ${ line } ` : '\n'
157157 str += `\n${ indent } ${ end } `
158158 } else {
159- str = `${ start } ${ flowCollectionPadding } ${ lines . join ( ' ' ) } ${ flowCollectionPadding } ${ end } `
159+ str = `${ start } ${ fcPadding } ${ lines . join ( ' ' ) } ${ fcPadding } ${ end } `
160160 }
161161 }
162162
You can’t perform that action at this time.
0 commit comments