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: https://github.com/nodejs/node/pull/25944
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott
2019-02-04 22:08:03 -08:00
parent 29e74d4952
commit 2a212549dc

10
benchmark/.eslintrc.yaml Normal file
View File

@@ -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