Skip to content

Commit

Permalink
Block.json formatting now that prettier is integrated. (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwelcher authored Oct 20, 2021
1 parent 4abe1a9 commit 83bb704
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 46 deletions.
36 changes: 18 additions & 18 deletions 04-controls-esnext/block.json
Original file line number Diff line number Diff line change
@@ -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"
}
5 changes: 4 additions & 1 deletion 05-recipe-card-esnext/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
{ "type": "li", "props": { "children": [ "💖" ] } }
],
"instructions": [
{ "type": "p", "props": { "children": [ "Mix, Bake, Enjoy!" ] } }
{
"type": "p",
"props": { "children": [ "Mix, Bake, Enjoy!" ] }
}
]
}
},
Expand Down
45 changes: 18 additions & 27 deletions 05-recipe-card/block.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
}

0 comments on commit 83bb704

Please sign in to comment.