tools: enable ESLint arrow-body-style rule (explicit braces and `return`)
tools: enable ESLint arrow-body-style rule
Always surround arrow function bodies that consist of a single expression in their own block.
Arrow functions that are a single expression do not need to be their own blocks. Use blocks in that situation for consistency and clarity.
The "use or do not use blocks" discussion came up in a pull request.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
tools test benchmark lib