Mobx is the only popular JavaScript library that I know about which uses decorators. They put things on the same line so we should follow their conventions. The logic implemented here is the following: if there is one decorator, it's on the same line. If there is more than one, they are each on their own line. Fixes #325
7 lines
72 B
JavaScript
7 lines
72 B
JavaScript
const dog = {
|
|
@readonly
|
|
@nonenumerable
|
|
@doubledValue
|
|
legs: 4
|
|
};
|