diff --git a/.eslintrc.json b/.eslintrc.json index 6454531b..b9cc1b31 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -4,6 +4,10 @@ "commonjs": true, "node": true }, + "globals": { + "suite": "readonly", + "test": "readonly" + }, "parserOptions": { "ecmaVersion": 6 }, diff --git a/bin/cli.js b/bin/cli.js index 413bd88e..acaa8588 100755 --- a/bin/cli.js +++ b/bin/cli.js @@ -143,10 +143,10 @@ function run() { // Read the data from any data file if (pOpts['data-file']) { - vals = JSON.parse(fs.readFileSync(pOpts['data-file']).toString()) + vals = JSON.parse(fs.readFileSync(pOpts['data-file']).toString()); } // Override / set any values passed from the command line - for (p in pVals) { + for (let p in pVals) { vals[p] = pVals[p]; }