Enable strict mode
parent
efe830640e
commit
47fe2a0ad8
|
@ -15,6 +15,7 @@
|
|||
"noUnusedLocals": true,
|
||||
"allowUnreachableCode": false,
|
||||
"strictNullChecks": true,
|
||||
"strict": true,
|
||||
"sourceMap": true,
|
||||
"allowJs": true,
|
||||
"pretty": true,
|
||||
|
|
|
@ -130,7 +130,8 @@ export class TileMoveAbsolute extends Component<StepParams, MoveAbsState> {
|
|||
const {
|
||||
stopAtHome, stopAtMax, negativeOnly, axisLength
|
||||
} = this.props.hardwareFlags;
|
||||
["x", "y", "z"].map((axis: Xyz) => {
|
||||
const axes: Xyz[] = ["x", "y", "z"];
|
||||
axes.map((axis: Xyz) => {
|
||||
const coord = parseFloat(this.getAxisValue(axis));
|
||||
const offset = parseFloat(this.getOffsetValue(axis));
|
||||
const sum = coord + offset;
|
||||
|
|
Loading…
Reference in New Issue