Skip to content

Commit 4b9817b

Browse files
Trotttargos
authored andcommittedJun 13, 2018
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: #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]>
1 parent 14a017c commit 4b9817b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎benchmark/es/spread-assign.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function main({ n, context, count, rest, method }) {
1515
for (let n = 0; n < count; n++)
1616
src[`p${n}`] = n;
1717

18-
let obj; // eslint-disable-line
18+
let obj; // eslint-disable-line no-unused-vars
1919
let i;
2020

2121
switch (method) {

0 commit comments

Comments
 (0)
Please sign in to comment.