Skip to content

Commit 8e2ed88

Browse files
committed
Lint and tsc
1 parent c63f209 commit 8e2ed88

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/bundles/robot_minigame/functions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const state: RobotMinigame = {
6868
areas: [],
6969
areaLog: [],
7070
actionLog: [],
71-
message: ""
71+
message: ''
7272
};
7373

7474
// sets the context to the state obj, mostly for convenience so i dont have to type context.... everytime
@@ -116,7 +116,7 @@ export function init(
116116
state.actionLog = [{type: 'begin', position: Object.assign({}, robot)}];
117117

118118
// Update the success message
119-
state.message = "Please run this in the assessments tab!";
119+
state.message = 'Please run this in the assessments tab!';
120120
}
121121

122122
/**
@@ -239,7 +239,7 @@ export function create_rect_obstacle(
239239
* Inform the simulator that the initialisation phase is complete
240240
*/
241241
export function complete_init() {
242-
if (state.actionLog.length === 0) throw new Error("May not complete initialization without first running init()");
242+
if (state.actionLog.length === 0) throw new Error('May not complete initialization without first running init()');
243243

244244
state.isInit = true;
245245
}

src/tabs/RobotMaze/components/RobotSimulation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ interface MapProps {
115115
}
116116

117117
const RobotSimulation : React.FC<MapProps> = ({
118-
state: {
118+
state: {
119119
width,
120120
height,
121121
robot: {radius: robotSize},
@@ -252,7 +252,7 @@ const RobotSimulation : React.FC<MapProps> = ({
252252
return (
253253
<>
254254
<div>
255-
255+
256256
{animationStatus === 0
257257
? <button onClick={() => {setAnimationStatus(1);}}>Start</button>
258258
: animationStatus === 1

src/tabs/RobotMaze/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React, { useState } from 'react';
2-
import type { RobotMinigame } from '../../bundles/robot_minigame/functions';
1+
import React from 'react';
32
import type { DebuggerContext } from '../../typings/type_helpers';
43
import RobotSimulation from './components/RobotSimulation';
54

0 commit comments

Comments
 (0)