Skip to content

Commit 6ca8d26

Browse files
Trottaddaleax
authored andcommitted
tools: apply more stringent lint rules for benchmark code
All benchmark code uses trailing commas on multi-line arrays and arrow functions for anonymous callbacks. Apply lint rules to that effect. PR-URL: #25944 Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent c4d16e8 commit 6ca8d26

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

benchmark/.eslintrc.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Benchmark-specific linter rules
2+
3+
rules:
4+
comma-dangle:
5+
- error
6+
- arrays: 'always-multiline'
7+
objects: 'only-multiline'
8+
imports: 'only-multiline'
9+
exports: 'only-multiline'
10+
prefer-arrow-callback: error

0 commit comments

Comments
 (0)