Fix ESLint errors in benchmark/run

Fix the following errors:

   37:3   error  Unexpected console statement      no-console
   38:3   error  Unexpected console statement      no-console
   42:3   error  Unexpected console statement      no-console
   43:3   error  Unexpected console statement      no-console
   44:3   error  Unexpected console statement      no-console
   51:3   error  Unexpected console statement      no-console
   64:3   error  Unexpected console statement      no-console
   68:3   error  Unexpected console statement      no-console
   74:3   error  Unexpected console statement      no-console
   75:3   error  Unexpected console statement      no-console
   76:3   error  Unexpected console statement      no-console
   77:3   error  Unexpected console statement      no-console
   78:3   error  Unexpected console statement      no-console
   79:3   error  Unexpected console statement      no-console
   80:3   error  Unexpected console statement      no-console
   81:3   error  Unexpected console statement      no-console
   82:3   error  Unexpected console statement      no-console
   94:3   error  Unexpected console statement      no-console
  126:11  error  "runCount" is already defined     no-redeclare
  169:34  error  "test" is defined but never used  no-unused-vars
  194:4   error  Unexpected trailing comma         comma-dangle
redux
David Majda 9 years ago
parent 488f32e661
commit ee66113130

@ -1,5 +1,7 @@
#!/usr/bin/env node
/* eslint no-console: 0*/
"use strict";
var fs = require("fs");
@ -123,7 +125,7 @@ while (args.length > 0 && isOption(args[0])) {
if (args.length === 0) {
abort("Missing parameter of the -n/--run-count option.");
}
var runCount = parseInt(args[0], 10);
runCount = parseInt(args[0], 10);
if (isNaN(runCount) || runCount <= 0) {
abort("Number of runs must be a positive integer.");
}
@ -166,7 +168,7 @@ Runner.run(benchmarks, runCount, options, {
return fs.readFileSync(__dirname + "/" + file, "utf8");
},
testStart: function(benchmark, test) {
testStart: function() {
/* Nothing to do. */
},
@ -191,5 +193,5 @@ Runner.run(benchmarks, runCount, options, {
writeSeparator();
writeResult("Total", inputSize, parseTime);
writeTableFooter();
},
}
});

Loading…
Cancel
Save