From 8263c96e9889a0eb2534ff014da9d87ea9582e25 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Sun, 19 May 2019 19:23:29 +0300 Subject: [PATCH] Enable "no-inner-declarations" rule on "resources/*.js" files (#1874) --- .eslintrc.yml | 1 - resources/benchmark.js | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 54c975459e..d7cec26e86 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -363,5 +363,4 @@ overrides: no-console: off no-sync: off global-require: off - no-inner-declarations: off #TODO prettier/prettier: off #TODO diff --git a/resources/benchmark.js b/resources/benchmark.js index 50dfb330c3..a5c19d68a4 100644 --- a/resources/benchmark.js +++ b/resources/benchmark.js @@ -143,7 +143,10 @@ function beautifyBenchmark(results) { console.log(' ' + bench.name + ': ' + red(String(bench.error))); continue; } + printBench(bench); + } + function printBench(bench) { const { name, ops, deviation, numRuns } = bench; console.log( ' ' + nameStr() + grey(' x ') + opsStr() + ' ops/sec ' +