mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
chore(deps): Bump prettier from 2.8.8 to 3.0.0 (#7322)
* chore(deps): Bump prettier from 2.8.8 to 3.0.0 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * chore: Reformat using Prettier v3.0 defaults The main change is to add trailing commas to the last line of block-formatted function calls. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christopher Allen <cpcallen+git@google.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
@@ -55,7 +55,7 @@
|
||||
function initPlayground() {
|
||||
if (typeof window.createPlayground === 'undefined') {
|
||||
alert(
|
||||
"You need to run 'npm install' in order to use this playground."
|
||||
"You need to run 'npm install' in order to use this playground.",
|
||||
);
|
||||
return;
|
||||
}
|
||||
@@ -108,7 +108,7 @@
|
||||
createWorkspace,
|
||||
defaultOptions,
|
||||
playgroundConfig,
|
||||
'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.19.2/min/vs'
|
||||
'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.19.2/min/vs',
|
||||
).then(function (playground) {
|
||||
configurePlayground(playground);
|
||||
});
|
||||
@@ -141,7 +141,7 @@
|
||||
|
||||
// Adds a default-sized workspace comment to the workspace.
|
||||
menuOptions.push(
|
||||
Blockly.ContextMenu.workspaceCommentOption(workspace, e)
|
||||
Blockly.ContextMenu.workspaceCommentOption(workspace, e),
|
||||
);
|
||||
}
|
||||
start();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
@@ -34,7 +34,7 @@ function svgToPng_(data, width, height, callback) {
|
||||
0,
|
||||
0,
|
||||
canvas.width,
|
||||
canvas.height
|
||||
canvas.height,
|
||||
);
|
||||
try {
|
||||
const dataUri = canvas.toDataURL('image/png');
|
||||
@@ -80,7 +80,7 @@ function workspaceToSvg_(workspace, callback, customCss) {
|
||||
'blocklySvg ' +
|
||||
(workspace.options.renderer || 'geras') +
|
||||
'-renderer ' +
|
||||
(workspace.getTheme ? workspace.getTheme().name + '-theme' : '')
|
||||
(workspace.getTheme ? workspace.getTheme().name + '-theme' : ''),
|
||||
);
|
||||
svg.setAttribute('width', width);
|
||||
svg.setAttribute('height', height);
|
||||
@@ -90,7 +90,7 @@ function workspaceToSvg_(workspace, callback, customCss) {
|
||||
.call(document.head.querySelectorAll('style'))
|
||||
.filter(
|
||||
(el) =>
|
||||
/\.blocklySvg/.test(el.innerText) || el.id.indexOf('blockly-') === 0
|
||||
/\.blocklySvg/.test(el.innerText) || el.id.indexOf('blockly-') === 0,
|
||||
)
|
||||
.map((el) => el.innerText)
|
||||
.join('\n');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
Reference in New Issue
Block a user