Skip to content

Commit

Permalink
Fix Prettier lints
Browse files Browse the repository at this point in the history
  • Loading branch information
adroitwhiz committed Jul 9, 2024
1 parent d2a544c commit 86447d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/io/leopard/toLeopard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
`;
Expand Down
4 changes: 2 additions & 2 deletions src/io/sb3/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export interface ProceduresCallMutation {
type MutationFor<Op extends OpCode> = Op extends OpCode.procedures_prototype
? ProceduresPrototypeMutation
: Op extends OpCode.procedures_call
? ProceduresCallMutation
: Mutation | undefined;
? ProceduresCallMutation
: Mutation | undefined;

export interface Block<Op extends OpCode = OpCode> {
opcode: Op;
Expand Down

0 comments on commit 86447d4

Please sign in to comment.