mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
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:
committed by
GitHub
parent
af991f5e1b
commit
88ff901a72
@@ -18,7 +18,6 @@ import './events/events_var_create.js';
|
||||
import * as idGenerator from './utils/idgenerator.js';
|
||||
import type {Workspace} from './workspace.js';
|
||||
|
||||
|
||||
/**
|
||||
* Class for a variable model.
|
||||
* Holds information for the variable including name, ID, and type.
|
||||
@@ -39,8 +38,11 @@ export class VariableModel {
|
||||
* @param opt_id The unique ID of the variable. This will default to a UUID.
|
||||
*/
|
||||
constructor(
|
||||
public workspace: Workspace, public name: string, opt_type?: string,
|
||||
opt_id?: string) {
|
||||
public workspace: Workspace,
|
||||
public name: string,
|
||||
opt_type?: string,
|
||||
opt_id?: string
|
||||
) {
|
||||
/**
|
||||
* The type of the variable, such as 'int' or 'sound_effect'. This may be
|
||||
* used to build a list of variables of a specific type. By default this is
|
||||
|
||||
Reference in New Issue
Block a user