Skip to content

Commit

Permalink
benchmark: disable only the ESLint rule needing it
Browse files Browse the repository at this point in the history
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: nodejs#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>
  • Loading branch information
Trott committed Jun 7, 2018
1 parent 8530b58 commit 41e5253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/es/spread-assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 41e5253

Please sign in to comment.