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