panoply/esthetic

JSON formatting issue

elliottmejia opened this issue · 4 comments

After hitting save, I'm seeing this:
{ "type": "image_picker", "id": "image-preview", "label": "Image preview" }, { "type": "text", "id": "block-title", "label": "Title" }, {
instead of this:
{ "type": "image_picker", "id": "image-preview", "label": "Image preview" }, { "type": "text", "id": "block-title", "label": "Title" },

Hey @Elliottmeija did you figure out the issue here?

You need to adjust the beautification rules, specifically by setting json.braceAllman to true. Shopify JSON structures don't necessarily require a specific format, any valid JSON will do. If Shopify recommends expanded structures, then it is only a recommendation, grain of salt it..