Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 837 Bytes

pr-8567.md

File metadata and controls

28 lines (24 loc) · 837 Bytes

Improve Prettier handling of arbitrary arguments (#8567, #8566 by @boyenn)

Prettier no longer unexpectedly add extra space after function when passing arbitrary arguments. Prettier no longer breaks code when inline number lists are used as arbitrary arguments.

/* Input */
body {
  test: function($list...);
  foo: bar(returns-list($list)...);
  background-color: rgba(50 50 50 50...);
}

/* Prettier stable */
body {
  test: function($list...);
  foo: bar(returns-list($list) ...); 
  background-color: rgba(50 50 50 50..);
}

/* Prettier master */
body {
  test: function($list...);
  foo: bar(returns-list($list)...);
  background-color: rgba(50 50 50 50...);
}