Files
test-repo/tests/decorators/multiple.js
T
Christopher Chedeau 888c7a52dd Put decorators on the same line (#459)
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
2017-01-25 16:30:09 -05:00

7 lines
72 B
JavaScript

const dog = {
@readonly
@nonenumerable
@doubledValue
legs: 4
};