Skip to content

Commit

Permalink
style: Apply updated Prettier styling
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Dec 21, 2022
1 parent e8ea440 commit f72eee8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export type ToStringOptions = {
/**
* When true, a single space of padding will be added inside the delimiters
* of non-empty single-line flow collections.
*
*
* Default: `true`
*/
flowCollectionPadding?: boolean
Expand Down
4 changes: 2 additions & 2 deletions src/stringify/stringifyCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function stringifyFlowCollection(
const {
indent,
indentStep,
flowCollectionPadding,
flowCollectionPadding: fcPadding,
options: { commentString }
} = ctx
itemIndent += indentStep
Expand Down Expand Up @@ -156,7 +156,7 @@ function stringifyFlowCollection(
str += line ? `\n${indentStep}${indent}${line}` : '\n'
str += `\n${indent}${end}`
} else {
str = `${start}${flowCollectionPadding}${lines.join(' ')}${flowCollectionPadding}${end}`
str = `${start}${fcPadding}${lines.join(' ')}${fcPadding}${end}`
}
}

Expand Down

0 comments on commit f72eee8

Please sign in to comment.