reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.08k stars 425 forks source link

Improve printing of destructuring with local open. #2684

Open SanderSpies opened 1 year ago

SanderSpies commented 1 year ago

Prints:

let EnterpriseContactForm.{
      personFirstNameField,
      personLastNameField,
      personEmailField,
      companyNameField,
      countryField,
      companySizeField,
      contactReasonField,
      submitFormState,
      onSubmit,
    } = formData;

as

 let EnterpriseContactForm.{
  personFirstNameField,
  personLastNameField,
  personEmailField,
  companyNameField,
  countryField,
  companySizeField,
  contactReasonField,
  submitFormState,
  onSubmit,
} = formData;

instead.

See #2681.