From 7e594cb6da6d8e277c79306fa4dd2a454e1b5bd6 Mon Sep 17 00:00:00 2001 From: Ryan Welcher <ryan.welcher@automattic.com> Date: Wed, 20 Oct 2021 09:53:54 -0400 Subject: [PATCH] Block.json formatting now that prettier is integrated. --- 04-controls-esnext/block.json | 36 ++++++++++++------------- 05-recipe-card-esnext/block.json | 5 +++- 05-recipe-card/block.json | 45 +++++++++++++------------------- 3 files changed, 40 insertions(+), 46 deletions(-) diff --git a/04-controls-esnext/block.json b/04-controls-esnext/block.json index 87557693..849c8657 100644 --- a/04-controls-esnext/block.json +++ b/04-controls-esnext/block.json @@ -1,28 +1,28 @@ { - "apiVersion": 2, - "name": "gutenberg-examples/example-04-controls-esnext", - "title":"Example: Controls (ESNext)", - "textdomain": "gutenberg-examples", - "icon": "universal-access-alt", - "category": "layout", + "apiVersion": 2, + "name": "gutenberg-examples/example-04-controls-esnext", + "title": "Example: Controls (ESNext)", + "textdomain": "gutenberg-examples", + "icon": "universal-access-alt", + "category": "layout", "attributes": { - "content": { - "type": "array", - "source": "children", - "selector": "p" - }, + "content": { + "type": "array", + "source": "children", + "selector": "p" + }, "alignment": { "type": "string", "default": "none" } - }, - "example": { - "attributes": { - "content": "Hello world", + }, + "example": { + "attributes": { + "content": "Hello world", "alignment": "right" - } - }, - "editorScript": "file:./build/index.js", + } + }, + "editorScript": "file:./build/index.js", "editorStyle": "file:./build/index.css", "style": "file:./build/style-index.css" } diff --git a/05-recipe-card-esnext/block.json b/05-recipe-card-esnext/block.json index 3f51c2cc..fe3fe1ff 100644 --- a/05-recipe-card-esnext/block.json +++ b/05-recipe-card-esnext/block.json @@ -42,7 +42,10 @@ { "type": "li", "props": { "children": [ "💖" ] } } ], "instructions": [ - { "type": "p", "props": { "children": [ "Mix, Bake, Enjoy!" ] } } + { + "type": "p", + "props": { "children": [ "Mix, Bake, Enjoy!" ] } + } ] } }, diff --git a/05-recipe-card/block.json b/05-recipe-card/block.json index feaf9e0b..e9419e86 100644 --- a/05-recipe-card/block.json +++ b/05-recipe-card/block.json @@ -1,11 +1,11 @@ { - "apiVersion": 2, - "name":"gutenberg-examples/example-05-recipe-card", - "title": "Example: Recipe Card", - "icon": "index-card", - "category": "layout", - "attributes": { - "title": { + "apiVersion": 2, + "name": "gutenberg-examples/example-05-recipe-card", + "title": "Example: Recipe Card", + "icon": "index-card", + "category": "layout", + "attributes": { + "title": { "type": "array", "source": "children", "selector": "h2" @@ -29,24 +29,15 @@ "source": "children", "selector": ".steps" } - }, - "example": { - "attributes": { - "title": "Chocolate Chip Cookies", + }, + "example": { + "attributes": { + "title": "Chocolate Chip Cookies", "mediaURL": "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/2ChocolateChipCookies.jpg/320px-2ChocolateChipCookies.jpg", - "ingredients": [ - "flour", - "sugar", - "chocolate", - "💖" - ], - "instructions": [ - "Mix", - "Bake", - "Enjoy" - ] - } - }, - "editorScript": "file:./block.js", - "style":"file:./style.css" - } + "ingredients": [ "flour", "sugar", "chocolate", "💖" ], + "instructions": [ "Mix", "Bake", "Enjoy" ] + } + }, + "editorScript": "file:./block.js", + "style": "file:./style.css" +}