Currently, we require all functions to have no space before the parens. My proposal is to treat anonymous functions differently and instead require there to be a space before those parens.
This is purely aesthetic, and I've seen both styles used throughout our codebase. I just think this style is a little bit cleaner and the little extra whitespace gives a bit of balance.
Currently, we require all functions to have no space before the parens. My proposal is to treat anonymous functions differently and instead require there to be a space before those parens.
This is purely aesthetic, and I've seen both styles used throughout our codebase. I just think this style is a little bit cleaner and the little extra whitespace gives a bit of balance.
Documentation for the ESLint Rule: space-before-function-paren
Current
Proposed