I had some issues with destructuring assignment shorthand when auto formatting JavaScript and TypeScript code in Visual Studio Code. I got result like this:
var {
check,
validationResult
} = require("express-validator/check");
but I need it to looks like this:
var { check, validationResult } = require("express-validator/check");
I have Beautify installed, and in my settings:
{
"editor.wordWrapColumn": 160,
"typescript.format.placeOpenBraceOnNewLineForFunctions": false,
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": false,
"javascript.format.placeOpenBraceOnNewLineForFunctions": false,
"javascript.format.placeOpenBraceOnNewLineForControlBlocks": false
}
I don't find anywhere else I could set place new line to false. Any idea how to set it right?