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

feat(rome_js_formatter): Function parameter & return type grouping #2990

Merged
merged 2 commits into from
Aug 3, 2022

Commits on Aug 3, 2022

  1. feat(rome_js_formatter): Group return type with parameters

    Implement the same heuristic as Prettier for grouping parameters with the return type annotation.
    
    This ensures that a return type will break FIRST before the parameters and the parameters only break if they don't fit on the same line together with the expanded return type annotation.
    
    This PR further unifies the formatting of methods and functions to achieve better code reuse.
    MichaReiser committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    777f596 View commit details
    Browse the repository at this point in the history
  2. address review feedback

    MichaReiser committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    08e3d40 View commit details
    Browse the repository at this point in the history