mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
10
benchmark/.eslintrc.yaml
Normal file
10
benchmark/.eslintrc.yaml
Normal 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
|
||||
Reference in New Issue
Block a user