From 4b9817bf1e3b6f0b542974917b26cb752efa5431 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 4 Jun 2018 13:28:03 +0000 Subject: [PATCH] benchmark: disable only the ESLint rule needing it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the spread-assign.js benchmark file, all ESLint rules are disabled for a line where only no-unused-vars needs to be disabled. This change makes it so that the remaining rules are still applied to the line. PR-URL: https://github.com/nodejs/node/pull/21133 Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Michaƫl Zasso Reviewed-By: Colin Ihrig --- benchmark/es/spread-assign.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/es/spread-assign.js b/benchmark/es/spread-assign.js index 3246081ff7197a..bbe07e02e15110 100644 --- a/benchmark/es/spread-assign.js +++ b/benchmark/es/spread-assign.js @@ -15,7 +15,7 @@ function main({ n, context, count, rest, method }) { for (let n = 0; n < count; n++) src[`p${n}`] = n; - let obj; // eslint-disable-line + let obj; // eslint-disable-line no-unused-vars let i; switch (method) {