Skip to content

Commit be09c54

Browse files
committed
run lint
1 parent 554a28d commit be09c54

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

src/lego_boost_python_generators_and_blocks.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ Blockly.Blocks['lego_boost_movement_forward'] = {
5959
this.setPreviousStatement(true, null);
6060
this.setNextStatement(true, null);
6161
this.setColour(lego_boost_color);
62-
this.setTooltip('Move motors AB straight forward for a certain time and speed.');
62+
this.setTooltip(
63+
'Move motors AB straight forward for a certain time and speed.'
64+
);
6365
this.setHelpUrl('');
6466
}
6567
};
@@ -70,13 +72,15 @@ Blockly.Blocks['lego_boost_movement_backwards'] = {
7072
.setCheck('Number')
7173
.appendField('Move backwards for time');
7274
this.appendValueInput('SPEED')
73-
.setCheck('Number')
74-
.appendField('and with speed');
75+
.setCheck('Number')
76+
.appendField('and with speed');
7577
this.setInputsInline(true);
7678
this.setPreviousStatement(true, null);
7779
this.setNextStatement(true, null);
7880
this.setColour(lego_boost_color);
79-
this.setTooltip('Move motors AB straight backwards for a certain time and speed.');
81+
this.setTooltip(
82+
'Move motors AB straight backwards for a certain time and speed.'
83+
);
8084
this.setHelpUrl('');
8185
}
8286
};
@@ -153,7 +157,6 @@ Blockly.Blocks['lego_boost_movement_rotate_360_right'] = {
153157
}
154158
};
155159

156-
157160
Blockly.Blocks['lego_boost_movement_turn_right_timed'] = {
158161
init: function () {
159162
this.appendValueInput('TIME')
@@ -230,7 +233,9 @@ Blockly.Blocks['lego_boost_move_motor_ab_timed'] = {
230233
this.appendValueInput('SPEED_A')
231234
.setCheck('Number')
232235
.appendField('and speeds for the right motor');
233-
this.appendValueInput('SPEED_B').setCheck('Number').appendField('and left motor');
236+
this.appendValueInput('SPEED_B')
237+
.setCheck('Number')
238+
.appendField('and left motor');
234239
this.setInputsInline(true);
235240
this.setPreviousStatement(true, null);
236241
this.setNextStatement(true, null);
@@ -248,7 +253,9 @@ Blockly.Blocks['lego_boost_move_motor_ab_angled'] = {
248253
this.appendValueInput('SPEED_A')
249254
.setCheck('Number')
250255
.appendField('with speeds for right motor');
251-
this.appendValueInput('SPEED_B').setCheck('Number').appendField('and left motor');
256+
this.appendValueInput('SPEED_B')
257+
.setCheck('Number')
258+
.appendField('and left motor');
252259
this.setInputsInline(true);
253260
this.setPreviousStatement(true, null);
254261
this.setNextStatement(true, null);
@@ -428,7 +435,8 @@ BlocklyPy['lego_boost_movement_turn_right_angled'] = function (block) {
428435
BlocklyPy.ORDER_ATOMIC
429436
);
430437

431-
var code = 'hub.motor_A.angled(' + value_angle*6 + ', ' + value_speed + ')\n';
438+
var code =
439+
'hub.motor_A.angled(' + value_angle * 6 + ', ' + value_speed + ')\n';
432440
return code;
433441
};
434442

@@ -445,7 +453,8 @@ BlocklyPy['lego_boost_movement_turn_left_angled'] = function (block) {
445453
BlocklyPy.ORDER_ATOMIC
446454
);
447455

448-
var code = 'hub.motor_B.angled(' + value_angle*6 + ', ' + value_speed + ')\n';
456+
var code =
457+
'hub.motor_B.angled(' + value_angle * 6 + ', ' + value_speed + ')\n';
449458
return code;
450459
};
451460

0 commit comments

Comments
 (0)