mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
2a212549dc
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>
11 lines
231 B
YAML
11 lines
231 B
YAML
## Benchmark-specific linter rules
|
|
|
|
rules:
|
|
comma-dangle:
|
|
- error
|
|
- arrays: 'always-multiline'
|
|
objects: 'only-multiline'
|
|
imports: 'only-multiline'
|
|
exports: 'only-multiline'
|
|
prefer-arrow-callback: error
|