Skip to content

Commit f72eee8

Browse files
committedDec 21, 2022
style: Apply updated Prettier styling
1 parent e8ea440 commit f72eee8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/options.ts

+1-1
Original file line numberDiff line numberDiff 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

‎src/stringify/stringifyCollection.ts

+2-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
Please sign in to comment.