Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutenberg Plugin: Format all JSON files using Prettier formatter #30714

Merged
merged 2 commits into from
Apr 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
"description": "Prototyping since 1440. Development hub for the editor focus in core.",
"homepage": "https://wordpress.github.io/gutenberg/",
"keywords": [
"gutenberg", "wordpress", "editor", "wp", "react", "javascript"
"gutenberg",
"wordpress",
"editor",
"wp",
"react",
"javascript"
],
"support": {
"issues": "https://github.com/WordPress/gutenberg/issues"
Expand Down
2 changes: 1 addition & 1 deletion docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1889,4 +1889,4 @@
"markdown_source": "../docs/contributors/roadmap.md",
"parent": "contributors"
}
]
]
512 changes: 339 additions & 173 deletions docs/toc.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion docs/tool/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ const manifestOutput = path.resolve( __dirname, '../manifest.json' );
// Process TOC file and generate manifest handbook
fs.writeFileSync(
manifestOutput,
JSON.stringify( getRootManifest( tocFileInput ), undefined, '\t' )
JSON.stringify( getRootManifest( tocFileInput ), undefined, '\t' ).concat(
'\n'
)
);
2 changes: 1 addition & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@wordpress/*": ["./*", "./packages/*/src"]
"@wordpress/*": [ "./*", "./packages/*/src" ]
}
},
"exclude": [
Expand Down
4 changes: 1 addition & 3 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"**/{__mocks__,__tests__,test}/**",
"**/{storybook,stories}/**"
],
"packages": [
"packages/*"
],
"packages": [ "packages/*" ],
"version": "independent"
}
5 changes: 1 addition & 4 deletions packages/a11y/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"rootDir": "src",
"declarationDir": "build-types"
},
"references": [
{ "path": "../dom-ready" },
{ "path": "../i18n" },
],
"references": [ { "path": "../dom-ready" }, { "path": "../i18n" } ],
"include": [ "src/**/*" ]
}
13 changes: 3 additions & 10 deletions packages/api-fetch/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@
"rootDir": "src",
"declarationDir": "build-types"
},
"references": [
{ "path": "../i18n" },
{ "path": "../url" }
],
"include": [
"src/**/*",
],
"exclude": [
"**/test/**/*",
]
"references": [ { "path": "../i18n" }, { "path": "../url" } ],
"include": [ "src/**/*" ],
"exclude": [ "**/test/**/*" ]
}
4 changes: 1 addition & 3 deletions packages/block-library/src/button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"apiVersion": 2,
"name": "core/button",
"category": "design",
"parent": [
"core/buttons"
],
"parent": [ "core/buttons" ],
"attributes": {
"url": {
"type": "string",
Expand Down
4 changes: 1 addition & 3 deletions packages/block-library/src/column/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"apiVersion": 2,
"name": "core/column",
"category": "text",
"parent": [
"core/columns"
],
"parent": [ "core/columns" ],
"attributes": {
"verticalAlignment": {
"type": "string"
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/columns/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
},
"supports": {
"anchor": true,
"align": [
"wide",
"full"
],
"align": [ "wide", "full" ],
"html": false,
"color": {
"gradients": true,
Expand Down
6 changes: 1 addition & 5 deletions packages/block-library/src/latest-posts/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@
},
"featuredImageAlign": {
"type": "string",
"enum": [
"left",
"center",
"right"
]
"enum": [ "left", "center", "right" ]
},
"featuredImageSizeSlug": {
"type": "string",
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/navigation/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@
"orientation": "orientation"
},
"supports": {
"align": [
"wide",
"full"
],
"align": [ "wide", "full" ],
"anchor": true,
"html": false,
"inserter": true,
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/paragraph/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
},
"direction": {
"type": "string",
"enum": [
"ltr",
"rtl"
]
"enum": [ "ltr", "rtl" ]
}
},
"supports": {
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/post-author/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
"type": "string"
}
},
"usesContext": [
"postType",
"postId"
],
"usesContext": [ "postType", "postId" ],
"supports": {
"html": false,
"fontSize": true,
Expand Down
4 changes: 1 addition & 3 deletions packages/block-library/src/post-comments-count/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"type": "string"
}
},
"usesContext": [
"postId"
],
"usesContext": [ "postId" ],
"supports": {
"html": false,
"color": {
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/post-comments-form/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
"type": "string"
}
},
"usesContext": [
"postId",
"postType"
],
"usesContext": [ "postId", "postType" ],
"supports": {
"html": false,
"color": {
Expand Down
10 changes: 2 additions & 8 deletions packages/block-library/src/post-comments/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@
"type": "string"
}
},
"usesContext": [
"postId",
"postType"
],
"usesContext": [ "postId", "postType" ],
"supports": {
"html": false,
"align": [
"wide",
"full"
],
"align": [ "wide", "full" ],
"fontSize": true,
"color": {
"gradients": true,
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/post-content/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"apiVersion": 2,
"name": "core/post-content",
"category": "design",
"usesContext": [
"postId",
"postType"
],
"usesContext": [ "postId", "postType" ],
"supports": {
"align": [ "wide", "full" ],
"html": false,
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/post-date/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
"default": false
}
},
"usesContext": [
"postId",
"postType"
],
"usesContext": [ "postId", "postType" ],
"supports": {
"html": false,
"color": {
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/post-excerpt/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@
"default": true
}
},
"usesContext": [
"postId",
"postType"
],
"usesContext": [ "postId", "postType" ],
"supports": {
"html": false,
"fontSize": true,
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/post-featured-image/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
"default": false
}
},
"usesContext": [
"postId",
"postType"
],
"usesContext": [ "postId", "postType" ],
"supports": {
"align": [ "left", "right", "center", "wide", "full" ],
"html": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
"type": "string"
}
},
"usesContext": [
"postId",
"postType"
],
"usesContext": [ "postId", "postType" ],
"supports": {
"html": false,
"fontSize": true,
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/post-title/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"apiVersion": 2,
"name": "core/post-title",
"category": "design",
"usesContext": [
"postId",
"postType"
],
"usesContext": [ "postId", "postType" ],
"attributes": {
"textAlign": {
"type": "string"
Expand Down
7 changes: 1 addition & 6 deletions packages/block-library/src/pullquote/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@
},
"supports": {
"anchor": true,
"align": [
"left",
"right",
"wide",
"full"
]
"align": [ "left", "right", "wide", "full" ]
},
"editorStyle": "wp-block-pullquote-editor",
"style": "wp-block-pullquote"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
"type": "string"
}
},
"usesContext": [
"queryId",
"query"
],
"usesContext": [ "queryId", "query" ],
"supports": {
"reusable": false,
"html": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"apiVersion": 2,
"name": "core/query-pagination-numbers",
"category": "design",
"usesContext": [
"queryId",
"query"
],
"usesContext": [ "queryId", "query" ],
"supports": {
"reusable": false,
"html": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
"type": "string"
}
},
"usesContext": [
"queryId",
"query"
],
"usesContext": [ "queryId", "query" ],
"supports": {
"reusable": false,
"html": false,
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/query-pagination/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
"apiVersion": 2,
"name": "core/query-pagination",
"category": "design",
"usesContext": [
"queryId",
"query"
],
"usesContext": [ "queryId", "query" ],
"supports": {
"reusable": false,
"html": false
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/separator/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"supports": {
"anchor": true,
"align": ["center","wide","full"]
"align": [ "center", "wide", "full" ]
},
"editorStyle": "wp-block-separator-editor",
"style": "wp-block-separator"
Expand Down
4 changes: 1 addition & 3 deletions packages/block-library/src/social-link/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"apiVersion": 2,
"name": "core/social-link",
"category": "widgets",
"parent": [
"core/social-links"
],
"parent": [ "core/social-links" ],
"attributes": {
"url": {
"type": "string"
Expand Down
6 changes: 1 addition & 5 deletions packages/block-library/src/social-links/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@
"iconBackgroundColorValue": "iconBackgroundColorValue"
},
"supports": {
"align": [
"left",
"center",
"right"
],
"align": [ "left", "center", "right" ],
"anchor": true
},
"editorStyle": "wp-block-social-links-editor",
Expand Down
4 changes: 1 addition & 3 deletions packages/block-library/src/spacer/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"type": "number"
}
},
"usesContext": [
"orientation"
],
"usesContext": [ "orientation" ],
"supports": {
"anchor": true
},
Expand Down
5 changes: 1 addition & 4 deletions packages/block-library/src/text-columns/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
"source": "html"
}
},
"default": [
{},
{}
]
"default": [ {}, {} ]
},
"columns": {
"type": "number",
Expand Down
Loading