有没有办法配置js-beautify保持以下格式:
"structure": [
{
"name": "heading",
"text": "",
"default": "",
"type": "string"
},
{
"name": "flickr-album-id",
"text": "",
"type": "string"
},
]
js-beautify 将第一个对象的大括号拉入第一行。我知道该选项keep_array_indentation
,但我不想禁用常规自动缩进,因为否则错误不会得到修复。
js-beautify 的结果——我想阻止——将是
"structure": [{
"name": "heading",
"text": "",
"default": "",
"type": "string"
},
{
"name": "flickr-album-id",
"text": "",
"type": "string"
},
]