chore: use prettier instead of clang-format (#7014)

* chore: add and configure prettier

* chore: remove clang-format

* chore: remove clang-format config

* chore: lint additional ts files

* chore: fix lint errors in blocks

* chore: add prettier-ignore where needed

* chore: ignore js blocks when formatting

* chore: fix playground html syntax

* chore: fix yaml spacing from merge

* chore: convert text blocks to use arrow functions

* chore: format everything with prettier

* chore: fix lint unused imports in blocks
This commit is contained in:
Maribeth Bottorff
2023-05-10 16:01:39 -07:00
committed by GitHub
parent af991f5e1b
commit 88ff901a72
425 changed files with 29170 additions and 21169 deletions

View File

@@ -1,40 +1,40 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Blockly &lt;iframe&gt; Playground</title>
<style>
html, body {
border: 0;
margin: 0;
padding: 0;
font-family: sans-serif;
}
h1#title {
border: 0;
margin: 2px;
padding: 0;
width: 100%;
}
#playground-iframe {
border: 0;
width: 100%;
}
</style>
<script type="text/javascript">
var onWindowResize = function() {
var iframe = document.getElementById('playground-iframe');
var top = iframe.getBoundingClientRect().top;
iframe.height = window.innerHeight - top;
iframe.width = window.innerWidth;
};
window.addEventListener("resize", onWindowResize);
window.addEventListener("load", onWindowResize);
</script>
</head>
<body>
<h1 id="title">Outer Frame</h1>
<iframe id="playground-iframe" src="../playground.html">
</iframe>
</body>
<head>
<meta charset="utf-8" />
<title>Blockly &lt;iframe&gt; Playground</title>
<style>
html,
body {
border: 0;
margin: 0;
padding: 0;
font-family: sans-serif;
}
h1#title {
border: 0;
margin: 2px;
padding: 0;
width: 100%;
}
#playground-iframe {
border: 0;
width: 100%;
}
</style>
<script type="text/javascript">
var onWindowResize = function () {
var iframe = document.getElementById('playground-iframe');
var top = iframe.getBoundingClientRect().top;
iframe.height = window.innerHeight - top;
iframe.width = window.innerWidth;
};
window.addEventListener('resize', onWindowResize);
window.addEventListener('load', onWindowResize);
</script>
</head>
<body>
<h1 id="title">Outer Frame</h1>
<iframe id="playground-iframe" src="../playground.html"> </iframe>
</body>
</html>