Skip to content

Commit 0855569

Browse files
committed
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.
1 parent 32d3174 commit 0855569

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

benchmark/.eslintrc.yaml

Lines changed: 10 additions & 0 deletions
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)