This PR adds a command line option singleLineBlocks to the es6ify command. If enabled, it will force if statements or loops which are not followed by a block statement to have a single-line block statement. It is disabled by default, so it's non-breaking.
For example, it will turn this:
if (foo)
bar();
into this:
if (foo) {
bar();
}
This is to ensure that the code is formatted by Prettier as per Qooxdoo's standards.
This PR adds a command line option
singleLineBlocks
to thees6ify
command. If enabled, it will forceif
statements or loops which are not followed by a block statement to have a single-line block statement. It is disabled by default, so it's non-breaking.For example, it will turn this:
into this:
This is to ensure that the code is formatted by Prettier as per Qooxdoo's standards.