There is a unique method
in which I can specify the code to format, such as forcing the else
statement to be on the same line as the ending brace of an if statement.
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-finally",
"check-whitespace"
],
I aim to maintain these specific rules for keeping certain elements in one-line
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
while enforcing other elements to be on separate lines
"check-catch",
"check-else",
"check-finally",
This will result in the following structure
if () {
}
else {
}
I am currently utilizing [email protected]. How do I configure this setup?