summaryrefslogtreecommitdiff
path: root/benchmark/es
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-06-04 13:28:03 +0000
committerRich Trott <rtrott@gmail.com>2018-06-06 21:03:32 -0700
commit41e5253e7c82a79b8f51eff6fd8a6fbb73af69c1 (patch)
tree2c518fbde0f314e57c72dc499455d0f91f45ee01 /benchmark/es
parent8530b58493c1da6c7bf21b4bb59824eda45521b2 (diff)
downloadandroid-node-v8-41e5253e7c82a79b8f51eff6fd8a6fbb73af69c1.tar.gz
android-node-v8-41e5253e7c82a79b8f51eff6fd8a6fbb73af69c1.tar.bz2
android-node-v8-41e5253e7c82a79b8f51eff6fd8a6fbb73af69c1.zip
benchmark: disable only the ESLint rule needing it
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 <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'benchmark/es')
-rw-r--r--benchmark/es/spread-assign.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/es/spread-assign.js b/benchmark/es/spread-assign.js
index 3246081ff7..bbe07e02e1 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) {