Back to Prettier

19503

changelog_unreleased/less/19503.md

3.9.5409 B
Original Source

Remove extra spaces after [ in map lookups (#19503 by @kovsu)

<!-- prettier-ignore -->
less
// Input
.foo {
  color: #theme[ primary];
  color: #theme[@name];
  color: #theme[@@name];
}

// Prettier stable
.foo {
  color: #theme[ primary];
  color: #theme[ @name];
  color: #theme[ @@name];
}

// Prettier main
.foo {
  color: #theme[primary];
  color: #theme[@name];
  color: #theme[@@name];
}