Skip to content

Commit f7c4796

Browse files
aduh95danielleadams
authored andcommitted
benchmark: add trailing commas in benchmark/path
PR-URL: #46628 Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent 260ddd5 commit f7c4796

22 files changed

+21
-33
lines changed

benchmark/.eslintrc.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,3 @@ env:
66

77
rules:
88
prefer-arrow-callback: error
9-
10-
overrides:
11-
- files:
12-
- path/*.js
13-
rules:
14-
comma-dangle: [error, {
15-
arrays: always-multiline,
16-
exports: always-multiline,
17-
functions: only-multiline,
18-
imports: always-multiline,
19-
objects: only-multiline,
20-
}]

benchmark/path/basename-posix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
1515
'/foo/bar/baz/asdf/quux.html',
1616
['/foo/bar/baz/asdf/quux.html', '.html'].join('|'),
1717
],
18-
n: [1e5]
18+
n: [1e5],
1919
});
2020

2121
function main({ n, pathext }) {

benchmark/path/basename-win32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
1515
'\\foo\\bar\\baz\\asdf\\quux.html',
1616
['\\foo\\bar\\baz\\asdf\\quux.html', '.html'].join('|'),
1717
],
18-
n: [1e5]
18+
n: [1e5],
1919
});
2020

2121
function main({ n, pathext }) {

benchmark/path/dirname-posix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
1212
'foo/bar',
1313
'/foo/bar/baz/asdf/quux',
1414
],
15-
n: [1e5]
15+
n: [1e5],
1616
});
1717

1818
function main({ n, path }) {

benchmark/path/dirname-win32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const bench = common.createBenchmark(main, {
1212
'foo\\bar',
1313
'D:\\foo\\bar\\baz\\asdf\\quux',
1414
],
15-
n: [1e5]
15+
n: [1e5],
1616
});
1717

1818
function main({ n, path }) {

benchmark/path/extname-posix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
1515
'/foo/bar/baz/asdf/quux',
1616
'/foo/bar/baz/asdf/quux.foobarbazasdfquux',
1717
],
18-
n: [1e5]
18+
n: [1e5],
1919
});
2020

2121
function main({ n, path }) {

benchmark/path/extname-win32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const bench = common.createBenchmark(main, {
1515
'D:\\foo\\bar\\baz\\asdf\\quux',
1616
'\\foo\\bar\\baz\\asdf\\quux.foobarbazasdfquux',
1717
],
18-
n: [1e5]
18+
n: [1e5],
1919
});
2020

2121
function main({ n, path }) {

benchmark/path/format-posix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, {
66
props: [
77
['/', '/home/user/dir', 'index.html', '.html', 'index'].join('|'),
88
],
9-
n: [1e6]
9+
n: [1e6],
1010
});
1111

1212
function main({ n, props }) {

benchmark/path/format-win32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const bench = common.createBenchmark(main, {
66
props: [
77
['C:\\', 'C:\\path\\dir', 'index.html', '.html', 'index'].join('|'),
88
],
9-
n: [1e6]
9+
n: [1e6],
1010
});
1111

1212
function main({ n, props }) {

benchmark/path/isAbsolute-posix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
1010
'/baz/..',
1111
'bar/baz',
1212
],
13-
n: [1e5]
13+
n: [1e5],
1414
});
1515

1616
function main({ n, path }) {

0 commit comments

Comments
 (0)