Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 310 Bytes

File metadata and controls

22 lines (19 loc) · 310 Bytes

Add missing parentheses for decorator (#14393 by @fisker)

// Input
class Person {
  @(myDecoratorArray[0])
  greet() {}
}

// Prettier stable
class Person {
  @myDecoratorArray[0]
  greet() {}
}

// Prettier main
class Person {
  @(myDecoratorArray[0])
  greet() {}
}