From 86447d4b6442aecbd3289dfc945b5a6bb2ce7fa5 Mon Sep 17 00:00:00 2001 From: adroitwhiz Date: Mon, 8 Jul 2024 21:41:08 -0400 Subject: [PATCH] Fix Prettier lints --- src/cli/index.ts | 5 ++++- src/io/leopard/toLeopard.ts | 6 +++--- src/io/sb3/interfaces.ts | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/cli/index.ts b/src/cli/index.ts index 9ebf31c..979053a 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -36,7 +36,10 @@ const options: { let { input, inputType, output, outputType } = options; class InferTypeError extends Error { - constructor(public readonly stage: "input" | "output", message: string) { + constructor( + public readonly stage: "input" | "output", + message: string + ) { super(message); this.name = "InferTypeError"; Object.setPrototypeOf(this, InferTypeError.prototype); diff --git a/src/io/leopard/toLeopard.ts b/src/io/leopard/toLeopard.ts index ac7611f..360e964 100644 --- a/src/io/leopard/toLeopard.ts +++ b/src/io/leopard/toLeopard.ts @@ -577,9 +577,9 @@ export default function toLeopard( if (script.hat && script.hat.opcode === OpCode.procedures_definition) { return ` * ${script.name}(${script.hat.inputs.ARGUMENTS.value - .filter(arg => arg.type !== "label") - .map(arg => arg.name) - .join(", ")}) { + .filter(arg => arg.type !== "label") + .map(arg => arg.name) + .join(", ")}) { ${body} } `; diff --git a/src/io/sb3/interfaces.ts b/src/io/sb3/interfaces.ts index f2dd3bc..37a3210 100644 --- a/src/io/sb3/interfaces.ts +++ b/src/io/sb3/interfaces.ts @@ -71,8 +71,8 @@ export interface ProceduresCallMutation { type MutationFor = Op extends OpCode.procedures_prototype ? ProceduresPrototypeMutation : Op extends OpCode.procedures_call - ? ProceduresCallMutation - : Mutation | undefined; + ? ProceduresCallMutation + : Mutation | undefined; export interface Block { opcode: Op;