Enable strict mode

pull/715/head
Rick Carlino 2018-03-13 09:26:50 -05:00
parent efe830640e
commit 47fe2a0ad8
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@
"noUnusedLocals": true,
"allowUnreachableCode": false,
"strictNullChecks": true,
"strict": true,
"sourceMap": true,
"allowJs": true,
"pretty": true,

View File

@ -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;