Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 07d8690

Browse filesBrowse files
aduh95MylesBorins
authored andcommitted
benchmark: add trailing commas in benchmark/path
PR-URL: #46628 Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent fdc588c commit 07d8690
Copy full SHA for 07d8690
Expand file treeCollapse file tree

22 files changed

+21
-33
lines changed
Open diff view settings
Collapse file

‎benchmark/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: benchmark/.eslintrc.yaml
-12Lines 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-
}]
Collapse file

‎benchmark/path/basename-posix.js‎

Copy file name to clipboardExpand all lines: benchmark/path/basename-posix.js
+1-1Lines 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 }) {
Collapse file

‎benchmark/path/basename-win32.js‎

Copy file name to clipboardExpand all lines: benchmark/path/basename-win32.js
+1-1Lines 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 }) {
Collapse file

‎benchmark/path/dirname-posix.js‎

Copy file name to clipboardExpand all lines: benchmark/path/dirname-posix.js
+1-1Lines 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 }) {
Collapse file

‎benchmark/path/dirname-win32.js‎

Copy file name to clipboardExpand all lines: benchmark/path/dirname-win32.js
+1-1Lines 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 }) {
Collapse file

‎benchmark/path/extname-posix.js‎

Copy file name to clipboardExpand all lines: benchmark/path/extname-posix.js
+1-1Lines 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 }) {
Collapse file

‎benchmark/path/extname-win32.js‎

Copy file name to clipboardExpand all lines: benchmark/path/extname-win32.js
+1-1Lines 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 }) {
Collapse file

‎benchmark/path/format-posix.js‎

Copy file name to clipboardExpand all lines: benchmark/path/format-posix.js
+1-1Lines 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 }) {
Collapse file

‎benchmark/path/format-win32.js‎

Copy file name to clipboardExpand all lines: benchmark/path/format-win32.js
+1-1Lines 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 }) {
Collapse file

‎benchmark/path/isAbsolute-posix.js‎

Copy file name to clipboardExpand all lines: benchmark/path/isAbsolute-posix.js
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.