chore: Fix format/lint

This commit is contained in:
Aaron Dodson
2026-05-14 14:55:17 -07:00
parent 5a004aa141
commit 45d9aa3de9
15 changed files with 18 additions and 41 deletions
@@ -15,9 +15,10 @@ import {Coordinate} from '../utils/coordinate.js';
import {WorkspaceSvg} from '../workspace_svg.js';
import * as registry from './registry.js';
export class WorkspaceCommentPaster
implements IPaster<WorkspaceCommentCopyData, RenderedWorkspaceComment>
{
export class WorkspaceCommentPaster implements IPaster<
WorkspaceCommentCopyData,
RenderedWorkspaceComment
> {
static TYPE = 'workspace-comment';
paste(
+1 -4
View File
@@ -16,10 +16,7 @@ import {ISelectable} from './i_selectable.js';
* A bubble interface.
*/
export interface IBubble
extends IDraggable,
IContextMenu,
ISelectable,
IBoundedElement {
extends IDraggable, IContextMenu, ISelectable, IBoundedElement {
/**
* Return the coordinates of the top-left corner of this bubble's body
* relative to the drawing surface's origin (0,0), in workspace units.
@@ -18,9 +18,7 @@ export enum DragDisposition {
* Represents an object that can be dragged.
*/
export interface IDraggable
extends IDragStrategy,
IBoundedElement,
ISelectable {
extends IDragStrategy, IBoundedElement, ISelectable {
/**
* Returns the current location of the draggable in workspace coordinates.
*
@@ -11,9 +11,7 @@ import type {INavigationPolicy} from '../../interfaces/i_navigation_policy.js';
/**
* Set of rules controlling keyboard navigation from a CommentBarButton.
*/
export class CommentBarButtonNavigationPolicy
implements INavigationPolicy<CommentBarButton>
{
export class CommentBarButtonNavigationPolicy implements INavigationPolicy<CommentBarButton> {
/**
* Returns the first child of the given CommentBarButton.
*
@@ -13,9 +13,7 @@ import type {INavigationPolicy} from '../../interfaces/i_navigation_policy.js';
* This is a no-op placeholder (other than isNavigable/isApplicable) since
* comment editors handle their own navigation when editing ends.
*/
export class CommentEditorNavigationPolicy
implements INavigationPolicy<CommentEditor>
{
export class CommentEditorNavigationPolicy implements INavigationPolicy<CommentEditor> {
getFirstChild(_current: CommentEditor): IFocusableNode | null {
return null;
}
@@ -14,9 +14,7 @@ import {navigateBlock} from './block_navigation_policy.js';
/**
* Set of rules controlling keyboard navigation from a connection.
*/
export class ConnectionNavigationPolicy
implements INavigationPolicy<RenderedConnection>
{
export class ConnectionNavigationPolicy implements INavigationPolicy<RenderedConnection> {
/**
* Returns the first child of a connection.
*
@@ -11,9 +11,7 @@ import type {INavigationPolicy} from '../../interfaces/i_navigation_policy.js';
/**
* Set of rules controlling keyboard navigation from a flyout button.
*/
export class FlyoutButtonNavigationPolicy
implements INavigationPolicy<FlyoutButton>
{
export class FlyoutButtonNavigationPolicy implements INavigationPolicy<FlyoutButton> {
/**
* Returns null since flyout buttons have no children.
*
@@ -12,9 +12,7 @@ import type {INavigationPolicy} from '../../interfaces/i_navigation_policy.js';
* Set of rules controlling keyboard navigation from a flyout separator.
* This is a no-op placeholder, since flyout separators can't be navigated to.
*/
export class FlyoutSeparatorNavigationPolicy
implements INavigationPolicy<FlyoutSeparator>
{
export class FlyoutSeparatorNavigationPolicy implements INavigationPolicy<FlyoutSeparator> {
getFirstChild(_current: FlyoutSeparator): IFocusableNode | null {
return null;
}
@@ -15,9 +15,7 @@ import {
/**
* Set of rules controlling keyboard navigation from a toolbox item.
*/
export class ToolboxItemNavigationPolicy
implements INavigationPolicy<IToolboxItem>
{
export class ToolboxItemNavigationPolicy implements INavigationPolicy<IToolboxItem> {
/**
* Returns the first child of the given toolbox item.
*
@@ -11,9 +11,7 @@ import type {INavigationPolicy} from '../../interfaces/i_navigation_policy.js';
/**
* Set of rules controlling keyboard navigation from an RenderedWorkspaceComment.
*/
export class WorkspaceCommentNavigationPolicy
implements INavigationPolicy<RenderedWorkspaceComment>
{
export class WorkspaceCommentNavigationPolicy implements INavigationPolicy<RenderedWorkspaceComment> {
/**
* Returns the first child of the given workspace comment.
*
@@ -11,9 +11,7 @@ import {WorkspaceSvg} from '../../workspace_svg.js';
/**
* Set of rules controlling keyboard navigation from a workspace.
*/
export class WorkspaceNavigationPolicy
implements INavigationPolicy<WorkspaceSvg>
{
export class WorkspaceNavigationPolicy implements INavigationPolicy<WorkspaceSvg> {
/**
* Returns the first child of the given workspace.
*
@@ -104,8 +104,7 @@ export function loadProcedure<
export class ProcedureSerializer<
ProcedureModel extends IProcedureModel,
ParameterModel extends IParameterModel,
> implements ISerializer
{
> implements ISerializer {
public priority = priorities.PROCEDURES;
/**
+3 -3
View File
@@ -33,9 +33,9 @@ import type {Workspace} from './workspace.js';
* variable types as keys and lists of variables as values. The list of
* variables are the type indicated by the key.
*/
export class VariableMap
implements IVariableMap<IVariableModel<IVariableState>>
{
export class VariableMap implements IVariableMap<
IVariableModel<IVariableState>
> {
/**
* A map from variable type to map of IDs to variables. The maps contain
* all of the named variables in the workspace, including variables that are
-1
View File
@@ -8,7 +8,6 @@
* @fileoverview Gulp script to build Blockly for Node & NPM.
* Run this script by calling "npm install" in this directory.
*/
/* eslint-env node */
// Needed to prevent prettier from munging exports order, due to
// https://github.com/simonhaenisch/prettier-plugin-organize-imports/issues/146
-1
View File
@@ -7,7 +7,6 @@
/**
* @fileoverview Helper functions for build/test.
*/
/* eslint-env node */
const path = require('path');