From 47fe2a0ad85ee617bf48d9c9c8cedec462e358d2 Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Tue, 13 Mar 2018 09:26:50 -0500 Subject: [PATCH] Enable strict mode --- tsconfig.json | 1 + webpack/sequences/step_tiles/tile_move_absolute.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index fbd42d6ad..f41c06399 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,7 @@ "noUnusedLocals": true, "allowUnreachableCode": false, "strictNullChecks": true, + "strict": true, "sourceMap": true, "allowJs": true, "pretty": true, diff --git a/webpack/sequences/step_tiles/tile_move_absolute.tsx b/webpack/sequences/step_tiles/tile_move_absolute.tsx index 912c5571d..d1f7a7003 100644 --- a/webpack/sequences/step_tiles/tile_move_absolute.tsx +++ b/webpack/sequences/step_tiles/tile_move_absolute.tsx @@ -130,7 +130,8 @@ export class TileMoveAbsolute extends Component { 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;