Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

feat(rome_formatter): Custom separator per Fill item #3125

Merged
merged 2 commits into from
Aug 29, 2022

Commits on Aug 29, 2022

  1. feat(rome_formatter): Custom separator per Fill item

    This PR refactors `Fill` to support different separator for every item rather than one uniform separator that separates all elements in the list.
    
    This is necessary to implement `fill` for array expressions where the separator should be a:
    
    * soft line break or space: if there are 0 - 1 line breaks before the node
    * empty line: if there are more than 1 new lines before the node.
    MichaReiser committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    3a1cfc1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fcbddb2 View commit details
    Browse the repository at this point in the history