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

@@ -7,7 +7,6 @@
import {BlockSvg} from './block_svg.js';
import {Coordinate} from './utils/coordinate.js';
/** The set of all blocks in need of rendering which don't have parents. */
const rootBlocks = new Set<BlockSvg>();
@@ -20,7 +19,7 @@ let dirtyBlocks = new WeakSet<BlockSvg>();
*
* Stored so that we can return it from afterQueuedRenders.
*/
let afterRendersPromise: Promise<void>|null = null;
let afterRendersPromise: Promise<void> | null = null;
/**
* Registers that the given block and all of its parents need to be rerendered,
@@ -126,7 +125,9 @@ function updateConnectionLocations(block: BlockSvg, blockOrigin: Coordinate) {
if (!target) continue;
if (moved || dirtyBlocks.has(target)) {
updateConnectionLocations(
target, Coordinate.sum(blockOrigin, target.relativeCoords));
target,
Coordinate.sum(blockOrigin, target.relativeCoords)
);
}
}
}