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: #21133
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
Trott authored and targos committed Jun 13, 2018
1 parent 14a017c commit 4b9817b
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 4b9817b

Please sign in to comment.