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:
dependabot[bot]
2023-07-25 14:56:10 +00:00
committed by GitHub
parent 9fc57a3bfa
commit 2546b01d70
297 changed files with 3247 additions and 3181 deletions

View File

@@ -160,7 +160,7 @@ export class Scrollbar {
private readonly horizontal: boolean,
opt_pair?: boolean,
opt_class?: string,
opt_margin?: number
opt_margin?: number,
) {
this.pair = opt_pair || false;
@@ -190,14 +190,14 @@ export class Scrollbar {
this.svgBackground = dom.createSvgElement(
Svg.RECT,
{'class': 'blocklyScrollbarBackground'},
group
group,
);
const radius = Math.floor((Scrollbar.scrollbarThickness - 5) / 2);
this.svgHandle = dom.createSvgElement(
Svg.RECT,
{'class': 'blocklyScrollbarHandle', 'rx': radius, 'ry': radius},
group
group,
);
this.workspace
@@ -224,13 +224,13 @@ export class Scrollbar {
this.svgBackground,
'pointerdown',
this,
this.onMouseDownBar
this.onMouseDownBar,
);
this.onMouseDownHandleWrapper_ = browserEvents.conditionalBind(
this.svgHandle,
'pointerdown',
this,
this.onMouseDownHandle
this.onMouseDownHandle,
);
}
@@ -291,7 +291,7 @@ export class Scrollbar {
this.handleLength = newLength;
this.svgHandle.setAttribute(
this.lengthAttribute_,
String(this.handleLength)
String(this.handleLength),
);
}
@@ -324,7 +324,7 @@ export class Scrollbar {
this.handlePosition = newPosition;
this.svgHandle.setAttribute(
this.positionAttribute_,
String(this.handlePosition)
String(this.handlePosition),
);
}
@@ -338,11 +338,11 @@ export class Scrollbar {
this.scrollbarLength = newSize;
this.outerSvg.setAttribute(
this.lengthAttribute_,
String(this.scrollbarLength)
String(this.scrollbarLength),
);
this.svgBackground.setAttribute(
this.lengthAttribute_,
String(this.scrollbarLength)
String(this.scrollbarLength),
);
}
@@ -710,7 +710,7 @@ export class Scrollbar {
const mouseXY = browserEvents.mouseToSvg(
e,
this.workspace.getParentSvg(),
this.workspace.getInverseScreenCTM()
this.workspace.getInverseScreenCTM(),
);
const mouseLocation = this.horizontal ? mouseXY.x : mouseXY.y;
@@ -758,13 +758,13 @@ export class Scrollbar {
document,
'pointerup',
this,
this.onMouseUpHandle
this.onMouseUpHandle,
);
this.onMouseMoveWrapper_ = browserEvents.conditionalBind(
document,
'pointermove',
this,
this.onMouseMoveHandle
this.onMouseMoveHandle,
);
e.stopPropagation();
e.preventDefault();
@@ -869,7 +869,7 @@ export class Scrollbar {
*/
private static metricsAreEquivalent(
first: Metrics,
second: Metrics
second: Metrics,
): boolean {
return (
first.viewWidth === second.viewWidth &&