Skip to content

Commit 88b904c

Browse files
aduh95ruyadorno
authored andcommitted
tools: require more trailing commas
All of the import and export statements in the codebase already use trailing commas, this commit adds a linter rule to enforce that. PR-URL: #46346 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent e7b507a commit 88b904c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

benchmark/.eslintrc.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ env:
77
rules:
88
comma-dangle: [error, {
99
arrays: always-multiline,
10-
exports: only-multiline,
10+
exports: always-multiline,
1111
functions: only-multiline,
12-
imports: only-multiline,
12+
imports: always-multiline,
1313
objects: only-multiline,
1414
}]
1515
prefer-arrow-callback: error

lib/.eslintrc.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ env:
44
rules:
55
comma-dangle: [error, {
66
arrays: always-multiline,
7-
exports: only-multiline,
7+
exports: always-multiline,
88
functions: only-multiline,
9-
imports: only-multiline,
9+
imports: always-multiline,
1010
objects: only-multiline,
1111
}]
1212
prefer-object-spread: error

test/.eslintrc.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ overrides:
9090
rules:
9191
comma-dangle: [error, {
9292
arrays: always-multiline,
93-
exports: only-multiline,
93+
exports: always-multiline,
9494
functions: only-multiline,
95-
imports: only-multiline,
95+
imports: always-multiline,
9696
objects: only-multiline,
9797
}]

0 commit comments

Comments
 (0)