Skip to content

Commit

Permalink
tools: apply more stringent lint rules for benchmark code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Trott authored and addaleax committed Feb 7, 2019
1 parent c4d16e8 commit 6ca8d26
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions benchmark/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Benchmark-specific linter rules

rules:
comma-dangle:
- error
- arrays: 'always-multiline'
objects: 'only-multiline'
imports: 'only-multiline'
exports: 'only-multiline'
prefer-arrow-callback: error

0 comments on commit 6ca8d26

Please sign in to comment.